cancel
Showing results for 
Search instead for 
Did you mean: 

Smartform problem

Former Member
0 Kudos

Hi,

In my PO Smartform, i have Select option for Ebeln. I.e Multiple POs should be printed.

Can anyone tell me how the smartform is to be modified for the above rwquirement.

My Smartform works fine for a single PO.

thanks in Advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Select all the POs using S_EBELN into ITAB,

then Loop ITAB and call the smartform.

This will create separate form for each PO.

If you wish a single Spool all the POs, then set the flag

Regards

Shiva

Former Member
0 Kudos

Lets take one e.g.

1st PO 4400091 has 8 items.

2nd PO 4400092 has 2 items.

then my itab has total 10 rows.

So whats next??

Former Member
0 Kudos

Hi,

Get only values from heder table EKKO not from item tables.

Pass only the PO number and get the item details in form by using the passed PO number

This will be very easy.

Regards

Shiva

Former Member
0 Kudos

in main window you have to create 2 tables one for header data and one for item data.

put condtion in item table conditions tab like ebeln = wa_header-ebeln

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can create a table, get the values from the select-options into itab and print the values in the itab into the table created in smartform.

Hope this helps.

Regards,

Deepthi.