cancel
Showing results for 
Search instead for 
Did you mean: 

SapScript Basics - Print Program

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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.

Regards,

Nick

Answers (0)