cancel
Showing results for 
Search instead for 
Did you mean: 

smartform problem

Former Member
0 Kudos

Hi

I am trying to list the purchasing orders and the vendors. I created a form (smartforms) but it doesn t work, bellow are the information that I used:

Global Tab:
ITAB Type STANDARD TABLE OF STR1
WA1 Type STR1
EBELN like EKKO-EBELN
LIFNR like EKKO-LIFNR

Type Tab:
types: begin of STR1,
EBELN type ekko-ebeln,
LIFNR type ekko-LIFNR,
end of STR1.

Initialization Tab:

output parameters: ITAB
select EBELN LIFNR from ekko into corresponding fields of table ITAB
where EBELN = '1009527' .


in the main window I create a LOOP :
DATA Tab:
Internal Table ticked
ITAB INTO WA1

I create a text bellow the lOOP that contains &WA1-EBELn&    &WA1-LIFNR&

when I generate the form and I tested the form, nothing is displayed.

please help

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

need more info from you my friend...

1st check in debugger the ITAB is filled with data or not..

put a BREAK-POINT before the select query and check....

If values are present check the mapping to the cells of the table you created in form painter..

Check for caps/exact field name and all

Thanks.

Ben

Answers (1)

Answers (1)

former_member209818
Active Contributor
0 Kudos

I think you Select Query is not working.

Convert the EBELN Number in the internal Number format using FM "CONVERSION_EXIT_ALPHA_INPUT" and then pass this variable for in Select Query.

Make sure that Sy-subrc is = 0 after selection and then only do the Printing using the table.

- Harshad

Former Member
0 Kudos

thank you for your help.

I used the query without WHERE and it lists all the information. please provide me the detail about how to use the FM in my query. I am a functional analyst , I am not familiar about abap.

thanks