We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-dev] ZXPADU01 data transfer problem

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by Bekir Sismanoglu (ABAP developer)
on May 21 at 10:21 AM
I could finally found out what is causing this.

after using the block,
call method cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
exporting
pnnnn = p2006
importing
prelp = innnn.

I reused the block,

call method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
exporting
prelp = innnn
importing
pnnnn = w2006.

to see how my p2006 is looking like after the main operation, and I saw no absurd values in it...

All in all, I found out that my last p2006 is being overwritten by the customizing!!!
Sorry for your time, but thanks for your effort and helping me.

---------------Original Message---------------
From: Bekir Sismanoglu
Sent: Thursday, May 19, 2011 1:38 PM
Subject: ZXPADU01 data transfer problem

First of all, this is a 6.0 system.

I am trying to bring up some default values for annual quota due to employee group and work experience. So I decided to code it in the user exit.
I am using the following block:

data: p2006 type p2006.
call method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
exporting
prelp = innnn
importing
pnnnn = p2006.

*Here I am inserting anzhl value after some functions
p2006-anzhl = lv_anzhl.

*Then I am ending the code as follows:
call method cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
exporting
pnnnn = p2006
importing
prelp = innnn.

All the values in p2006 is just as I wanted, no problem.
But after casting the data into innnn type my innnn-data1 looks like:
"000000000000 10# ?##?00000000000000000000000000000000"
there is something wrong with these #s... It contains no data that I want to use.

by the way 10 must be the subtype, not my anzhl

Note: when I put break point at the beginning of the include (before cl_hr_pnnnn_type_cast=>prelp_to_pnnnn), I check the innnn-data1 field
and it appears just as I copied above...
What can cause this? for the last 2 days I am searching this in forums and got nothing useful so far.

__.____._
Copyright © 2011 Toolbox.com and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251
Mark as helpful
View this online
  
Popular White Papers

In the Spotlight
Toolbox.com Groups Discussions Support BBCode. Share Code Snippets with Peers
_.____.__

0 comments:

Post a Comment

T r a n s l a t e to your language