cancel
Showing results for 
Search instead for 
Did you mean: 

how to pass a variable from se38 prog to script.

Former Member
0 Kudos

hi ,

my requirement is for billing.

what i need to do is if kona-zlsch = 'T', then i have to set a flag = 'X'.

i want to know that how i will pass this flag value to my script ?

plz can any one help me.

thanks

Santosini

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

i am not getting this.

what i am doing, i am getting that value like

SELECT SINGLE * FROM KONA INTO WA_KONA WHERE KNUMA EQ WA_VBRK-KNUMA.

IF WA_KONA-ZLSCH EQ 'T'.

FLAG = 'X'.

ENDIF.

but how i will pass that flag value to script.

plz , help me......

thanks

Former Member
0 Kudos

SAP script:

select the window in which u want to display the varibale.

go to edit->text elements

then goto->change editor

first column select /:

then mention &FLAG&.

main program:

call functions: 1. open_form

2. write_form

3. close_form

Former Member
0 Kudos

Hi,

U pass this variable kona-zlsch = 'T' thru internal table in write form.

After Loop at itab.

just check the condition

if kona-zlsch = 'T'.

flag = x.

endif.

and describe the same varible with same name in script &flag& u 'll get the value in script.

Thanks,

Arunprasad.P