Skip to Content

Standard Include -how to use in Z-Program

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 20, 2016 at 07: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


    31.PNG (2.0 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.