‎2009 Feb 16 4:22 AM
‎2009 Feb 16 4:23 AM
Hi,
Would you please let us know what exactly is the requirement ....
because just by writing sy-tcode will also work at the background...
Please be more specific.
Regards,
Siddarth
‎2009 Feb 16 4:24 AM
Hi Anoop,
Try using sessions method.It give you a detailed log after you finish your Processing.
Or else put a break-point.
Or try capturing the message using table bdcmsgcoll .
Hope it helps!
Much Regards,
Amuktha.
‎2009 Feb 16 4:28 AM
hi
you can dedug the code....
goto SE37......
In command window type JDBG and start debugging...
there you can find sy-ucomm or sscerfields-ucomm.
regards
‎2009 Feb 16 4:43 AM
I am running CFM3 from R3 and which will pass the material details in APO side...
for that in APO i have coded in a BADI and its working in Foreground.The check i had added is by using T Code..
But if we run CFM3 in background , sy-tcode will be blank in this case.so the check fails...
Any other way to do the check??
‎2009 Feb 16 4:48 AM
hi,,
As soon as you get into the transaction assign sy-tcode to a different variable and then call the badi.... in that badi use the variable which you have declared instead of using sy-tcode.....
Problem might be because when the badi call is made, might be the sy-tcode would have been reinitialized by SAP automatically at the background due to which it can create problems... so its always suggested to capture the system fields in the variable and then use those variable...
So as soon as you enter in the tcode assign the value using
tcode = sy-tcode... and later on give the check when you call the BADI
Regards,
Siddarth
‎2009 Feb 16 5:05 AM
Hi,
Use sy-cyprog which stores the calling program id.
IF SY-CYPROG = 'RIMODAC2'.
....
ENDIF.
NOTE: sy-tcode will not contain the correct transaction code value when run in background.
Regards.
Edited by: Dev Parbutteea on Feb 16, 2009 6:07 AM
‎2014 Mar 29 3:22 PM