Skip to Content
author's profile photo Former Member
Former Member

perform in sapscript (not showing data in output form)

Hi All , I have to show given data in the sap script, driver program is given below. DATA: X(3) TYPE C, Y(3) TYPE C, Z(3) TYPE C. FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY OUT_PAR STRUCTURE ITCSY. X = 100. Y = 200. Z = X + Y. READ TABLE IN_PAR WITH KEY 'X'. IN_PAR-NAME = 'X'. IN_PAR-VALUE = X. APPEND IN_PAR. READ TABLE IN_PAR WITH KEY 'Y'. IN_PAR-NAME = 'Y'. IN_PAR-VALUE = Y. APPEND IN_PAR. READ TABLE OUT_PAR WITH KEY 'Z'. OUT_PAR-NAME = 'Z'. OUT_PAR-VALUE = Z. APPEND OUT_PAR. ENDFORM. Sapscript: this perform have used in sapscript /: PERFORM GET_BARCODE IN PROGRAM ZPAN12 /: USING &X& /: USING &Y& /:CHANGING &Z& /:ENDPERFORM * &Z& but data is not showing in output for Z. please let me know where I am wrong. Thanks and Regards Sankil

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Mar 08, 2013 at 11:48 AM

    Hi,

    Put a break point in the program and check whether the program is triggered or not.If it is trigger check the value is coming or not.So that you can get where exactly stuck.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 08, 2013 at 11:59 AM

    READ TABLE OUT_PAR assigning <fs> index 1.

    X = 100. Y = 200. Z = X + Y.

    If sy-subrc = 0.

    <fs>-value = Z.

    endif.

    Regards,

    Vamshi.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 08, 2013 at 12:08 PM

    Hi ,

    Try to use below code.

    READ TABLE IN_PAR WITH KEY 'X'. IN_PAR-NAME = 'X'. IN_PAR-VALUE = X.

    NOT REQUIRED APPEND

    READ TABLE IN_PAR WITH KEY 'Y'. IN_PAR-NAME = 'Y'. IN_PAR-VALUE = Y.

    NOT REQUIRED APPEND

    READ TABLE OUT_PAR WITH KEY 'Z'. OUT_PAR-NAME = 'Z'. OUT_PAR-VALUE = Z.

    APPEND OUT_PAR. NOT REQUIRED APPEND

    INSPITE OF THIS APPEND USE MODIFY STATEMENT FOR INTERNAL TABLE - OUT_PAR.

    THAN IT WILL WORK

    ENDFORM.

    Thanks

    Tarak

    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.