02-04-2011 6:58 AM
Hi Friends,
I need to export the sy-burcvalue from routine(TCODE VOFM) and import to print program.
in routine i'm using the following code.
EXPORT SY-SUBRC TO MEMORY ID 'ZMEM'.
in print program i'm using the following code.
IMPORT sy-subrc FROM MEMORY ID 'ZMEM'.
but it's not norking. is there any other solution.
Thanks in Advance.
vallamuthu.m
02-04-2011 7:11 AM
hi,
check out these links
http://wiki.sdn.sap.com/wiki/display/ABAP/SUBROUTINESANDTHEIRUSEIN+SAPSCRIPT
http://help.sap.com/saphelp_40b/helpdata/ru/d1/803279454211d189710000e8322d00/content.htm
regards
shivraj
02-04-2011 7:25 AM
Hi
Try to move the sy-subrc value to some local variable lv_subrc and then export to memory Id.
And at the time of importing it import it in the another local variable of type sy-subrc.
Best Regards,
Nikhil Patil
02-04-2011 7:36 AM
02-04-2011 11:41 AM
You are using the old syntax of export / import. Make note that both the variables must be of same name and type.
02-11-2011 9:59 AM
I've created one ztable and pass the sy-subrc value and check the sy-subrc value in print program.