cancel
Showing results for 
Search instead for 
Did you mean: 

SMARTFORMS

Former Member
0 Kudos

Hi all,

How to use two table fields in a smartform. In my smartform in the main window I used a table control (gave itab into itab) and within that I gave a loop (jtab into jtab) and within that i gave a text and gave both itab and jtab fields to be displayed.

In SE38. I gave.

Data: begin of itab occurs 0,

VBELN TYPE VBAP-VBELN,

POSNR TYPE VBAP-POSNR,

MATNR TYPE MARA-MATNR,

MEINS TYPE MARA-MEINS,

end of itab.

Select avbeln aposnr bmanr bmeins into table itab from vbap as a inner join mara as b on amatnr = bmatnr.

Then I called the functon.

In tables.

jtab = itab.

itab = itab.

ABAP runtime error is coming Call_Function_parm_missing.

What should I do.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi,

create the structure, the structure should contain all the fields

which u want from 2 tables. use this structure in your smartform as well

as ur printed program, in printed program created one internal table with

this structure and pass the both value to this internal table, in ur interface

of the smart form use this internal table. while in main window, in table,

data, loop statement use this internal table.

regards,

Praveen.

Former Member
0 Kudos

Check if You're getting in Your smartform (importing) the same parameters

that you're passing in the CALL FUNCTION.

Maybe You want to get more than You have passed...

If it wont help pls paste you're code with the CALL FUNCTION code

regards

Former Member
0 Kudos

CREATE A STRUCTURE WITH THE 4 REQUIRED FIELDS. THEN INCLUDE IT.

data: begin of itab occurs 1.

include STRUCTURE ZSTR_VBMA.

data: end of itab.

Select avbeln aposnr bmatnr bmeins into table itab from vbap as a inner join mara as b on amatnr = bmatnr.

CALL FUNCTION '/1BCDWB/SF00000310'

TABLES

itab = ITAB .

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

IN THE SMART FORM LOOP THE MAIN WINDOE AND DISPLAY THE FIELDS.

CHEERS.

Former Member
0 Kudos

hi giri,

If I loop in the main window then will it wok.

what should i give in the form interface. itab like ....

Former Member
0 Kudos

Hi Could u plz past the code .

Regards,

Sunil