cancel
Showing results for 
Search instead for 
Did you mean: 

My loop statement in smartforms seems not to be working...

aris_hidalgo
Contributor
0 Kudos

Hello Experts,

I am currently practicing smartforms and I am trying to display the records of my internal table.

What I did was in my table under MAIN window I have put the statement:

it_spfli into wa_spfli and also in my main area of my table I have a loop statement. Now, in one of my text

i put wa_spfli-carrid, wa_spfli-countryfr, etc. But it still does not show any data.Help would be greatly appreciated.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

whtever u did is correct..

but i need one clarification where you r filling the ITAB. in the driver program or in the smartform... if it is in the INITIALIZATION tab.. then make sure u have given the itab name in the INPUT and OUTPUT parameters.

once chek in the debuggig whether the entries are coming into the table.

aris_hidalgo
Contributor
0 Kudos

HI Naresh,

Thank you for your reply. WHat do you mean in the input and output?Also, how can i debug smartforms? Again, thank you!

Former Member
0 Kudos

u will be getting a function module name for the smartform then

goto se37-->enter the FM name -->search for the ITAB you r using then put a break point.

come back to u r program the run.. controle will stops over there then check whether the data is populating or not.

INPUT and OUTPUT patameters are for program line and INITIALIZATION tabs.. when you want to modify some data in these you need to give the veriable or ITABs u r using inside. so that system will determine the global declarations(veriable or ITAbs).

for more info refer these links

http://www.sap-img.com/smartforms/sap-smart-forms.htm

http://www.sap-img.com/smartforms/smartform-tutorial.htm

http://www.sapgenie.com/abap/smartforms.htm

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Just check in case you have test data in spfli tables..

Hope that helps.

Regards

Kapadia

***Assigning points is the way to say thanks in SDN.***