cancel
Showing results for 
Search instead for 
Did you mean: 

Adding new fields of SAP script

Former Member
0 Kudos

Hi Friends,

I have one standard form. My client requirement is to add two more following columns.

Add a column 'Document Header Text'

For this i have to pass Belnr ot BKPF and i have

to fetch BKTXT.

second column is 'Text'

For this i have to pass Belnr to BSEG and i have

to fetch SGTXT.

The above two fields i have to disppaly in main window, so not single value , it has to be fetch multiple values.

For above two columns, how i to write my Perform statement

using ITCSY structure?

Please help me out in this regard..

Useful answers will get good reward points.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

i never worked with ITCSY structure for editing , so i don't know abt that , but wat i can suggest u is ,

As u told u have to use two tables BKPF n BSEG.

First go to driver program and check weather this prg using these two tables OR not .

If yes then find SELECT query on these table in prg. if these r considering BELNR in where condition it is very fine .

Then u have to modify SAP Script only not need to do change in Prg., just add two column and put these two values in them .

ELSE IF CASE IS NOT AS ABOVE

i.e. driver prg. is not using both tables .

then u have to modify driver prg, also .

define two internal table.

take BELNR from any internal table which was allready there in prg.

write SELECT query with that value (ITAB-BELNR ) in where condition.

then put these values in Script column u added.

this may help u .

reward if helpful.