2016 Jul 20 6:41 AM
Hi All,
In VOFM am having requirement on Create one Text based on Company Code.Already in this include "RV45TE82"
one logic is there,so now i want to put if condition based on company code and i l trigger the new text..
As discussed,it is little bit time to get the Access key to work on this program.So kindly give me a clarification on
how to use the Standard include inside Z-Program(Execution Program) to display the new Text maintained in SO10.
Thanks,
Nithya
2016 Jul 20 8:15 AM
Hi Nithya,
Nithya M wrote:
In VOFM am having requirement on Create one Text based on Company Code.Already in this include "RV45TE82"
The include RV45TE82 is not available in system.
one logic is there,so now i want to put if condition based on company code and i l trigger the new text..
We can call the subroutine from some other include(RV45TE82) using the below code.
PERFORM <form name> IN PROGRAM <lv_program>
Kindly check whether implicit enhancement is available in the beginning of the subroutine, if available place the condition like below.
IF SY-TCODE = 'ZTCODE'. "Check Custom program t-code
DATA: L_BUKRS TYPE BUKRS.
"Get company code inside enhancement
GET PARAMETER ID 'BUK' FIELD L_BUKRS.
IF L_BUKRS IS NOT INITITAL.
ELSE.
"if company code mismatch or company code not available Exit from the subroutine.
EXIT.
ENDIF.
ENDIF.
Regards
Rajkumar Narasimman