cancel
Showing results for 
Search instead for 
Did you mean: 

Customising, form entry, smartform, internal table

aidan_mulcahy
Active Participant
0 Kudos

Hi,

I need a suggestion....

We have a standard program to call a smartform when invoked from customising. This program can be called from anywhere so there is no data being passed to it. All data selection should be done within the smartform.


Program:
...
form entry using pi_ret type SYSUBRC
                        pi_scr type c.
...
call function 'SSF_FUNCTION_MODULE_NAME'.....

call function fm_name....
endform

This works fine in most cases but....not always.

Example:

if we get 5 HU's, using VL74 the smartform is called 5 times.

Within the smartform we get the data with, e.g.


DATA: l_char(23) TYPE c.

FIELD-SYMBOLS : <temp> TYPE ANY TABLE.
l_char = '(SAPLKKBL)T_OUTTAB[]'.
ASSIGN (l_char) TO <temp>.

so, now <temp> refers to an internal table with 5 HU's but, as the SF is going to be called 5 times, we only want to process one line of the table.

So, how do I know each time I come into the SF which HU to print?

Is there a way, using <temp> to delete the actual line processed in '(SAPLKKBL)T_OUTTAB[]'?

Should I use import/export to memory?

Suggestions appreciated?

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi cric,

I would suggest you to choose Enhancement framework.(if it is ECC)

find out is there any implicit enhancements are available or not... if yes you can strightly implement it.

if not you can do explicit enhancements.

if you still need any assistance plz reply me ::)

all the very best.

Regards,

Sreenivasa Sarma K

aidan_mulcahy
Active Participant
0 Kudos

thanks.

it is ECC - can you expand on your suggestion? I have used the EF, so know my way around it, but how would you propose to use it in this case?

Former Member
0 Kudos

hi Kroc,

below links will help you in enhancement framwork.

http://help.sap.com/saphelp_nw70/helpdata/en/83/43e040e136742ae10000000a155106/content.htm

Its purely depends on what standard program you are using. If you could closely debug the standard program and foundout the behaviour of routine and look for where the NAST table is used in the program.

the enhancement framework cannot give the 100% solution for your issue....try your luck with enhancement spot or enhancement points ... it nothing works for you means you need to do the repair to the program.

all the best.

Regards,

Sreenivasa sarma K

aidan_mulcahy
Active Participant
0 Kudos

thanks Sreenivasa.

Answers (0)