cancel
Showing results for 
Search instead for 
Did you mean: 

Elements are not displaying in the Output

former_member187457
Active Contributor
0 Kudos

Hi All,

I am writing a element in the Script..in one window....

like.....

/E MAT_NO

P4 Material No : &lv_matnr& / &lv_artx&

P4 Serial Number :

/E SERIAL_NO

P4 test test teswt

P4 &lv_srnr&

now i m writing...

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'MAT_NO'

window = 'SRN_NO'

EXCEPTIONS

OTHERS = 8.

if..condition...successful...

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'SERIAL_NO'

window = 'SRN_NO'

EXCEPTIONS

OTHERS = 8.

now the issue is the 2nd element ie. SERIAL_NO is getting displayed ..but 1st one is not displaying...

dont know wts the error...

while debugging the report both the elements are called and sy-subrc = 0.

please suggest...

Thnx

Rk

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member187457
Active Contributor
0 Kudos

hi experts,

now i have included both the variables in one text element..

...in a loop i m using ... PERFORM write_form USING 'SERIAL_NO' 'SRN_NO'.

now the issue is if in a table i have two items ...then loop will run two times....and the form will be called twice....

thats how it works usually....

but in my case only the last record is displaying .....first record is ...i think is overwitten by the 2nd record........dont know .....

please help me out......

thnx

RK

former_member187457
Active Contributor
0 Kudos

no..experts......

former_member187457
Active Contributor
0 Kudos

it may be the stupidiest question or easiest question......

but still i am not getting the clue......

so please suggest me.....

former_member187457
Active Contributor
0 Kudos

reason for this issue might be the window type.....

i think this kind of scenario works only in MIAN window not in VAR type window......

please cofirm.....

former_member187457
Active Contributor
0 Kudos

thats the only reason....i guess

thanks for not giving any suggestions......

😄