Skip to Content
0
Dec 03, 2009 at 07:56 AM

unknown value in main window

26 Views

Hello Experts,

I am facing an problem in smartforms.i have defined the floowing in types tab of global definitions.

TYPES: BEGIN OF TY_LIKP,

VBELN LIKE LIKP-VBELN,

KUNNR LIKE LIKP-KUNNR,

WERKS LIKE LIKP-WERKS,

LFDAT LIKE LIKP-LFDAT,

END OF TY_LIKP.

and in the global data tab

it_likp type table of ty_likp

wa_likp type ty_likp.

in the initializaion tab....

SELECT * FROM LIKP INTO CORRESPONDING FIELDS OF TABLE IT_LIKP.

and in the main window i have created a loop in which it_likp into wa_likp.

then in that a text which contains &wa_likpn-vbeln& &wa_likp-kunnr&.

but in the print preview i am getting the only value is '180000103' & not anything from kunnr. can anybdy tell me where does this valu come from?

and i have one more doubt.

if in the initialization tab i write loop at it_likp into wa_likp.endloop.

will dis happen like for each iteration it will go to main window and print the value n come back back for the next iteration n then go to main window....and so on till the last value in it_likp.?

or it will just fish looping first in the initialization tab and then will go to main window for &wa_likp&.....and print only the last value in &wa_likp&.

plz help.

thnks n regards,

Ashmita