‎2009 Jan 09 4:42 PM
Hello;
I have a problem in a dynpro that when i press any button in a dynpro it exits:
I notice when debug the dynpro that fails that when i press a button it doesn´t enter in the ProcessBeforOutput it goes direct to ProcessAfterInput, but, in the dynpro that works ok, it stops in the ProcessBeforeOutput, this is the code:
PROCESS BEFORE OUTPUT.
*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'MICONTROL'
MODULE MICONTROL_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE MICONTROL_CHANGE_COL_ATTR.
LOOP AT TKNA1
INTO WKNA1
WITH CONTROL MICONTROL
CURSOR MICONTROL-CURRENT_LINE.
MODULE MICONTROL_GET_LINES.
*&SPWIZARD: MODULE MICONTROL_CHANGE_FIELD_ATTR
ENDLOOP.
MODULE STATUS_0200.
*
PROCESS AFTER INPUT.
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'MICONTROL'
LOOP AT TKNA1.
CHAIN.
FIELD WKNA1-KUNNR.
FIELD WKNA1-NAME1.
MODULE MICONTROL_MODIFY ON CHAIN-REQUEST.
endchain.
FIELD WKNA1-SEL
MODULE MICONTROL_MARK ON REQUEST.
ENDLOOP.
MODULE MICONTROL_USER_COMMAND.
*&SPWIZARD: MODULE MICONTROL_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE MICONTROL_CHANGE_COL_ATTR.
MODULE USER_COMMAND_0200.
I looked in the SAP Notes and didn´t find something like this case.
thanks on advance.
David Fúnez
‎2009 Jan 09 5:01 PM
When you press something on the screen, it first goes to Process after input and then if you dont have any further screen calls or transaction calls under PAI, the cursor then goes to Process before output.
Did not understand your problem
‎2009 Jan 09 5:01 PM
When you press something on the screen, it first goes to Process after input and then if you dont have any further screen calls or transaction calls under PAI, the cursor then goes to Process before output.
Did not understand your problem
‎2009 Jan 09 5:10 PM
let me explain you yn a better way,
1) i did a dynpro with an EXIT button and code the OK_CODE for this button, and works Ok,
2) i added to the dynpro a table control with the wizard with the ADD DELETE rows buttons, ADV PRIOR FIRST LAST page buttons SELECT ALL DESELECT ALL buttons.
3) when i press any button from the table control it takes me out of the dynpro.
4) I repeat this steps doing again the dynpro and the new one works ok,
5) i debuged the 2 dynpros, and the only on diference between both is that whe i press any button of the table control, in one dynpro enter to the PBO and in the other enter to the PAI.
I hope this explain be much clear than the firs post.
David Funez