Application Development 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: 

Chain and endchain issue

former_member211992
Active Participant
0 Kudos

Hi all,

Tcode MI04 ,filling serial number for material screen no 300 Funcin group ipw4

i have added extra push button in the modal ,

i have written a logic in PAI ,to get serial number from .txt file .

in PBO i have passed serial no to ripw0-sernr in inside the table control loop.


now i can see the serial number in table control .

but when i press enter in the PAI

*****************************************************************
PROCESS AFTER INPUT.
*****************************************************************
*{ INSERT S3
MODULE user_command_300.
*} INSERT

MODULE exit_command AT EXIT-COMMAND.
MODULE data_input.

LOOP WITH CONTROL tc_serial_numbers. "EHP603 / ACC

MODULE cursor. "EHP603 / ACC

FIELD: ripw0-selkz MODULE deselkz ON REQUEST.

* CHAIN. "P
* FIELD: RIPW0-SELKZ. "P40
* FIELD: RIPW0-SERNR. "P40

* >>>>>>>>>> IS2ERP ECC-DIMP start >>>>>>>>>>
CHAIN.
FIELD:
ripw0-sernr,
ripw0-uii, "EHP603 / IU**
ripw0-selkz,
ripw0-equpd.
FIELD:
ripw0-subrk MODULE eingabe_subrk ON REQUEST.

"SWITCH DIMP_GENERAL
ENDCHAIN.
* <<<<<<<<<< IS2ERP ECC-DIMP end <<<<<<<<<<<<
* ON REQUEST -> CHAIN/ON CHAIN-REQUEST/ENDCHAIN "EHP603 / IU


CHAIN. "EHP603 / IU
FIELD:
ripw0-uii, "EHP603 / IU
ripw0-sernr.
MODULE eingabe_sernr ON CHAIN-REQUEST.
ENDCHAIN. "EHP603 / IU
* ENDCHAIN. "P4

FIELD: ripw0-selkz
MODULE selkz.

ENDLOOP.


MODULE tabctrl_afterloop. "EHP603 / IU

MODULE ae_loop.
MODULE profile_check.
MODULE ablauf_liste.

MODULE eingabe_sernr ON CHAIN-REQUEST. is not triggering , if i fill serial numbers manually in the table control this part getting triggered

I have checked ripw0-sernr. it is changing inside the loop when do through txt upload.


Need help in rectifying this .

Thanks


3 REPLIES 3

Patrick_vN
Active Contributor
0 Kudos

If you enter a value in the Process Before Output, then that doesn't trigger a CHAIN..ENCHAIN mechanism in the Process After Input. Unless I'm mistaken, the module EINGABE_SERNR will only be triggered when the user modifies RIPW0-UII and/or RIPW0-SERNR field(s).

There is the program DEMO_DYNPRO_FIELD_CHAIN which makes it relatively easy to debug and fool around with the different possibilites of the mechanism.

0 Kudos

Thanks patrick for your reply

here in PAI inside the loop control i am seeing ripw0-sernr is changing but MODULE eingabe_sernr ON CHAIN-REQUEST is not triggering , if i fill the table control manually it is triggering , if i do through upload push button(custom) i can see the values in table control but after pressing enter in PAI MODULE eingabe_sernr ON CHAIN-REQUEST is not triggering..

0 Kudos

Based on the documentation (https://help.sap.com/http.svc/rc/abapdocu_752_index_htm/7.52/en-US/index.htm?file=abenselection_screen_glosry.htm), I'd conclude the CHAIN..ENCHAIN requires user input (which explains why it works if you fill the table control manually).

Have you tried using ON CHAIN-INPUT instead?