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 PBO problem

Former Member
0 Likes
711

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

1 ACCEPTED SOLUTION
Read only

former_member191735
Active Contributor
0 Likes
614

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

2 REPLIES 2
Read only

former_member191735
Active Contributor
0 Likes
615

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

Read only

0 Likes
614

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