on 12-29-2006 7:05 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Could u plz past the code .
Regards,
Sunil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.