on 02-20-2006 4:09 PM
Hi all,
I want to put a loop in a smart form so i have created the loop node and in the global definitions i have created a work area relating to my table.In the form interface under the tab tables i have declared a variable itab and in the program i am passing the my internal table to it.Now tell where i am going wrong.
Regards,
Lisa
Message was edited by: Lisa Roy
Hi Lisa,
Please note that you can't assign tables defined in global parameters at tables in "form interface".
You can define internal tables w.r.t tables/structures in the data base only
These tables are importing while calling the SSF function module .
*-----
CALL FUNCTION LF_FM_NAME
EXPORTING
ARCHIVE_INDEX = TOA_DARA
ARCHIVE_PARAMETERS = ARC_PARAMS
CONTROL_PARAMETERS = LS_CONTROL_PARAM
MAIL_RECIPIENT = LS_RECIPIENT
MAIL_SENDER = LS_SENDER
OUTPUT_OPTIONS = LS_COMPOSER_PARAM
ZXEKKO = L_DOC-XEKKO " user_settings = ' '
ZXPEKKO = L_DOC-XPEKKO
KSCHL = NAST-KSCHL
TABLES
L_XEKPO = L_DOC-XEKPO[]
L_XEKPA = L_DOC-XEKPA[]
L_XPEKPO = L_DOC-XPEKPO[]
L_XEKET = L_DOC-XEKET[]
L_XTKOMV = L_DOC-XTKOMV[]
L_XEKKN = L_DOC-XEKKN[]
L_XEKEK = L_DOC-XEKEK[]
L_XKOMK = L_XKOMK
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
You can tables
L_XEKPA = L_DOC-XEKPA[]
L_XPEKPO = L_DOC-XPEKPO[]
L_XEKET = L_DOC-XEKET[]
L_XTKOMV = L_DOC-XTKOMV[]
L_XEKKN = L_DOC-XEKKN[]
L_XEKEK = L_DOC-XEKEK[]
L_XKOMK = L_XKOMK
in form interface.
Regards,
Lanka
Message was edited by: Lanka Murthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lisa,
Are you putting a loop in a smart form in order to print the internal table..
if that is so.. it is just enough if you pass the internal table to the form and it is automatically printed.
And to define a Work area of your table in the TABLES tab .. you'll have the structure to be specified in the DATA DICTIONARY..
hope this helps you.
regards
satesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lisa,
If you want to call a internal table in a SMARTFORM which doesnot have a similar structure as that of a DATA DICTIONARY structure or a database table then it gives you an error.
This being the case you'll have to create a structure similar to the intenal table in your DATA Dictionary and only then you can use it in your Form.
regards
satesh
Hi Lisa,
You have an internal table with all customer address in it.
You want to loop them and print at different addesss text boxes. Is my understanding is correct.
If so then
---Write programing (CODE) lines before every address text as
: Read table ITAB with key PARVW = 'AG' . --sold to party
Then call Address text for "SOLDTO" with &ITAB-ADRNR& and add conditions as &ADRNR& NE ' '.
And so on... at all address texts.
Hope this may help you.
Regards,
Lanka
Hi Lisa,
Create a window Example: SOLD_TO_ADDRESS--.
Create Program lines as
-- Read table ITAB with key PARVW = 'SP'. " sold to paty .
Create Adddress test --
--- Add &ITab-ADRNR& at Address number
--- Add &ITAB-ADRNE& NE SPACE at conditions.
Hope this will help you.
Please reward points for all useful answers.
Regards,
Lanka
Hi Lisa,
Even in the output parameters you have to write the table work area,for the vaules to be populated & send it to the variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.