2014 Apr 09 5:01 PM
Hi, here is my issue:
I populated a table control in PBO with blank records ready for user input.
In PAI I want to implement clipboard functionality, so if a user push "clipboard" button on my screen i populate internal table ITAB(used for table control on the screen); with data from clipboard.
The problem is program does not go inside LOOP AT ITAB-->ENDLOOP in the PAI and it does not recognized that user made an input in my table control. I have tried to use FM DYNP_VALUES_UPDATE and it successfully competed but still, the program does not go inside LOOP AT ITAB -->. ENDLOOP in PAI. How do I force the system to make believe a user update a table control record?
Your help gratefully appreciated and will be properly rewarded..
2014 Apr 09 7:02 PM
Hi Oleg,
You can write your code to populate the internal table after the LOOP..ENDLOOP in the PAI.
Regards,
Santanu.
2014 Apr 09 7:29 PM
Hi Santanu,
Imagine my control table is for the user to enter material and inside the LOOP_ENDLOOP in the PAI I am doing additional data retrieval per user entered material with validations.So if clipboard pressed by user I am coping data from clipboard and populate internal table, instead of user entering it in the control table. I need the PAI go inside of the LOOP_ENDLOOP to perform validations.
2014 Apr 09 8:15 PM
Please
1- Show us your code and image of ypur screen.
2-When you click in any button in screen then the pai is called.
3-Please see the tcod ABAPDOCU and go in leter T (see the image 😞
2014 Apr 10 12:44 AM
I think you already attached a function code to the clipboard button. The internal table which you are looping contains atleast one row of data.
2014 Apr 10 4:06 AM
Hello Oleg Su.
Since initially there won't be any record in table control, you need to append that data to itab.
For instance,
MODULE TC_MODIFY INPUT.
MODIFY ITAB INDEX TC-CURRENT_LINE.
if sy-subrc <> 0.
APPEND itab.
endif.
ENDMODULE. "TC_MODIFY INPUT
Regards.