2014 Oct 28 11:59 AM
Hi all,
I have a small issue in my module pool program. I have inserted by select-options parameter along with the extension button as per my requirement. However I cant understand where to put my select query in my program. The select query is not populating the internal table correctly based on the select options, as per debugging. The below screenshots are provided for your reference:
The variables and structure is declared and the select-options is passed:
The flow logic for screen 8999 is below:
I have written the select query inside MODULE USER_COMMAND_8999.
The layout for this screen is:
Finally in screen 9001, I have made a table control with wizard:
On executing and clicking submit:
All the values from the VBAP table are being dispayed.
But, if I press on the extension button and then I click on "SUBMIT":
Then the values are being displayed correctly as per select-options
Where shall I put the select query in order to get the output correctly?
Regards.
Manish.
2014 Oct 28 12:50 PM
Hello Manish,
it's just an assumption - try changing the order of the statements MODULE USER_COMMAND_8999 and CALL SUBSCREEN REF1 in PAI flow logic.
Regards,
Ulrich
Hi all,
I have a small issue in my module pool program. I have inserted by select-options parameter along with the extension button as per my requirement. However I cant understand where to put my select query in my program. The select query is not populating the internal table correctly based on the select options, as per debugging. The below screenshots are provided for your reference:
The variables and structure is declared and the select-options is passed:
The flow logic for screen 8999 is below:
I have written the select query inside MODULE USER_COMMAND_8999.
The layout for this screen is:
Finally in screen 9001, I have made a table control with wizard:
On executing and clicking submit:
All the values from the VBAP table are being dispayed.
But, if I press on the extension button and then I click on "SUBMIT":
Then the values are being displayed correctly as per select-options
Where shall I put the select query in order to get the output correctly?
Regards.
Manish.
2014 Oct 28 12:50 PM
Hello Manish,
it's just an assumption - try changing the order of the statements MODULE USER_COMMAND_8999 and CALL SUBSCREEN REF1 in PAI flow logic.
Regards,
Ulrich
2014 Oct 28 3:56 PM
2014 Oct 30 9:06 AM
Hi,
Thanks a lot. Your assumption was correct .
Regards.
Manish
2014 Oct 29 5:30 PM
Hi Manish,
I have checked your source and it is working fine.
just insert the following in MODULE USER_COMMAND_8999 INPUT and try
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT' "CONVERSION ROUTINE FOR MLOW
EXPORTING
INPUT = S_VBELN-low
IMPORTING
OUTPUT = MLOW1
EXCEPTIONS
LENGTH_ERROR = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |