Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smart forms

Former Member
0 Likes
489

Hi Experts,

         I am importing the field 'order no' into form interface. In my print program, that field is taken as 'select-options' field. Now I am populating the orders into one itab and I am passing that itab for the parameter 'S_order' in the generated FM. But its giving the dump. Pl give some suggestion, what should be the field structure for the field to be passed to 'S_order' in the FM.

Rgds,

Khadeer,..

4 REPLIES 4
Read only

bastinvinoth
Contributor
0 Likes
463

Hi Khadeer Basha,

I recommend you to see the below examples for select option function in smartform

http://www.saptechies.com/sap-pdf-books-download/ccab6730_0501_0010_ee84_de050a6cc287343411326358...

A Simple Smartform Tutorial

also n of tutorials available for smartforms search SCN completely

Read only

Former Member
0 Likes
463

Hi Khadeer,

Create a custom structure in se11with

1.sign

2.option

3.low

4.high

as fields.

and use this structure in smart form interface.

Now, you can call

CALL FUNCTION v_form_name

       TABLES

           itab_select = s_order.

with this the issue wil be solved.

for more clarifications goto

http://saptechnical.   com/Tutorials/Smartforms/SelectOptions/Demo.htm

Read only

RaymondGiuseppi
Active Contributor
0 Likes
463

Look in SE11 via where-used for table type definitions related to the data-element, which kind of "order" ?

e.g. Data Element AUFNR -> Where used / Table Types -> RANGE_T_AUFNR and some others...

Regards,

Raymond

Read only

Former Member
0 Likes
463

Hi Khadeer,

       Seems like the dump is because of type mismatch of the itab in your program and the 'S_ORDER' parameter in your smartform.

Please assign the types to the data objects as specified below.

1. Itab in the program:

   DATA: itab type range of aufnr.

2. S_ORDER in the smartform must be assigned with the table type RANGE_T_AUFNR.

This shall resolve your problem.

Regards,

Sarath.