Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Standard Include -how to use in Z-Program

former_member225134
Participant
0 Kudos

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

1 REPLY 1

rajkumarnarasimman
Active Contributor
0 Kudos

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