Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynpro - recursive routine

Former Member
0 Likes
645

hello all,

I have created dynpro to update data in ztable.

on selection screen i have to enter parameter for customer no. (kna1-kunnr).

Now everything is working fine. but after saving data , on selection screen when

i enter customer no and press F8 immediately programme is throwing out.

so at a time i can enter data for single customer only.

can anyone suggest me what should i write for recursive routine.

thanks & regards,

viraj

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
616

santhosh,

this is my coding.

selection-screen begin of block b1.

PARAMETERS: p_kunnr TYPE kna1-kunnr obligatory.

selection screen end of block b1.

START-OF-SELECTION.

CALL SCREEN 100.

END-OF-SELECTION.

(NONE)

******

regards

raj.

5 REPLIES 5
Read only

Former Member
0 Likes
616

hi,

after ur database statement i guess insert use commit work.

hope that helps.

santhosh

Read only

Former Member
0 Likes
616

santhosh,

data updation is not a problem.

i am asking for recursive routine like migo. you enter material document & do data entry & save . then in the same screen you can again enter material document &

do data entry & save.

MIGO is not throwing out at menu level after each material document, you know.

i want to do same in my dynpro.

thanks,

raj

Read only

0 Likes
616

hi,

ok..well after ur update statement in the last screen.

call screen 100. r what ever ur screen, should agn take u to the same screen (the initial screen) so that u make a new entry. I hope i gt ur question rite.

santhosh

Read only

Former Member
0 Likes
617

santhosh,

this is my coding.

selection-screen begin of block b1.

PARAMETERS: p_kunnr TYPE kna1-kunnr obligatory.

selection screen end of block b1.

START-OF-SELECTION.

CALL SCREEN 100.

END-OF-SELECTION.

(NONE)

******

regards

raj.

Read only

0 Likes
616

hi,

selection-screen begin of block b1.

PARAMETERS: p_kunnr TYPE kna1-kunnr obligatory.

selection screen end of block b1.

START-OF-SELECTION.

do.

CALL SCREEN 100.

if sy-ucomm = 'EXIT'.

exit.

santhosh

endif.

enddo.

END-OF-SELECTION.

Message was edited by:

Kaluvala Santhosh