Skip to Content
avatar image
Former Member

SapScript Basics - Print Program

Hi everyone, i have a simple problem than any one of u can solve.

I have a variable - KNB1-CESSION_KZ, and i created a table of mine that as the same key CESSION_KZ but with another data that i need to put in a SapScript.

1º. When i put &KNB1-CESSION_KZ& in the SapScript the value appears.

2º I need the value to make a SELECT so i can select the data from my table (ZCESSION).

3º I already know that i have to make a perform (possibility).

Imagine this example: I want to make Zcession-Bank happear in the SapScript for that KNB1-CESSION_KZ value.

Thx in advance.!! Regards to all

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 15, 2007 at 06:05 PM


    You have two options, you can either change your print program to read this data or you can call an ABAP subroutine from your SAPscript.

    Be aware that you will have to call the subroutine once for each record in KNB1, as you can not hold and loop at the internal table in your SAPscript.

    The syntax of the SAPscript PERFORM is well documented in the SAP help, and also in this forum.



    Add comment
    10|10000 characters needed characters exceeded