For any ABAP Report or an executable giving the selection criterion is important. Presenting the user with selection screen is very easy using Select-Options and Parameters in SAP ABAP.
The basic for of Select-Options in SAP ABAP is as follows.
Select-options: s_vbeln for vbak-vbeln.
In the above statement s_vbeln is defined as an internal table. And it has the following fields.
SIGN: I OPTION: EQ LOW: 4969 HIGH: _________________________________________
In case the user enters a range from 4969 to 4977 then the output of the above code is
SIGN: I OPTION: BT LOW: 4969 HIGH: 4977 _______________________________________________
In case the user enters only selected values as 4969, 4970, 4971, 4972 the the output will be as follows.
SIGN: I OPTION: EQ LOW: 4969 HIGH: SIGN: I OPTION: EQ LOW: 4970 HIGH: SIGN: I OPTION: EQ LOW: 4971 HIGH: SIGN: I OPTION: EQ LOW: 4972 HIGH: SIGN: I OPTION: EQ LOW: 4973 HIGH: ______________________________________________
Note: The output shown above is for the internal table of select options. The result of the selected Sales Order will be different. You can run the code given above and see the output.
Always use Pretty Printer and Extended Program Check before releasing the code.
Do not leave unused code in the program. Comment the code thoroughly. Align the comments and the Code. Follow the SAP Standards and SAP Best Practices guidelines. It’s a good practice to take a dump of the code on your local drive.
No comments:
Post a Comment