‎2011 Dec 13 8:22 AM
Dear Gurus ,
I have an ALV that has a Hotspot click . This hotspot click runs a a dialog program that i have create .
In this dialog program i send an email and the problem is when i send it i say Commit_work .
After the Commit_work the program leaves the dialog and goes back to ALV.
I found that the problem is the Commit_work but i cant find the solution .
Do you have any idea ???
‎2011 Dec 13 8:44 AM
Can you please paste your code here how are you calling the module pool program if is via function module etc it will return to original screen else if uit call tcode or something it should not.
‎2011 Dec 13 8:27 AM
‎2011 Dec 13 8:33 AM
I have created a small batch input because i have to "hit" a button in the dialog program to go to a certain point .
‎2011 Dec 13 9:00 AM
In a program executed using batch input, or if you have called the program using the USING addition of the statement CALL TRANSACTION, COMMIT WORK terminates the batch input processing when using the corresponding settings.
So batch-input will terminate as soon as the commit-work will trigger.
Regards,
Raymond
‎2011 Dec 13 8:44 AM
Can you please paste your code here how are you calling the module pool program if is via function module etc it will return to original screen else if uit call tcode or something it should not.
‎2011 Dec 13 9:16 AM
This is the code how i call tha dialog thru ALV ...
DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.
PERFORM BDC_DYNPRO USING 'YDP_PROJECTS' '0100'.
PERFORM BDC_FIELD USING 'BDC_OKCODE' 'SEARCH'. "
PERFORM BDC_FIELD USING 'BDC_CURSOR' 'W_BUKRS'.
PERFORM BDC_FIELD USING 'W_BUKRS' ITAB-BUKRS.
PERFORM BDC_FIELD USING 'BDC_CURSOR' 'W_COMPL'.
PERFORM BDC_FIELD USING 'W_COMPL' ITAB-PROJECT.
CLEAR MESSTAB.
CLEAR MESSTAB[].
CALL TRANSACTION 'YPROJECTS'
USING BDCDATA
MODE 'E' "'A' 'E'
UPDATE 'S'
MESSAGES INTO MESSTAB.
REFRESH BDCDATA .
PERFORM REFRESH.
‎2011 Dec 14 6:01 AM
Hi,
In transaction flow commit work is the last state and that is why it happens. In SDN please search for RACOMMIT in call transaction. This will solve your problem.
Keshav