cancel
Showing results for 
Search instead for 
Did you mean: 

smart form help

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi all,

i need to print the address of diffrent customers. so i have created a loop node onder the node address. how can i solve this.

Regards,

Lisa

Former Member
0 Kudos

Hi satesh,

I didn't understand you can you please explain it clearly.

Regards,

Lisa.

Former Member
0 Kudos

Hi Lisa,

You set conditions at address text.

Please let me know are you using Address text or text element.

In either case you can set conditions at conditions tabe on "address text " or Text element" to print desired address.

Lanka

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Lanka,

In my first page i have created a window with address in that i have created a subnode as loop node.in the loop node there is another sub node that is 'text node'.

This is how i have defined.

Regards,

Lisa

Former Member
0 Kudos

Hi Lanka,

you are correct but where i have to write.

Regards,

Lisa.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Lisa,

to be more clear no need of looping..

just create a text element in any window.. and write your field name in it..

after populating the itab with address..

just call the function module..

regards

satesh

Former Member
0 Kudos

Hi all,

i am unable to reward points because i am unable to see the radio buttons.So i will close it as soon as possible.

Regards,

Lisa.

Former Member
0 Kudos

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.