Modify recording scenario

Sometimes we need to use recording added to our enhancement program. If the recording consists of a table control such as in VL31N and you need to select or deselect some line items … You could override the PERFORM bdc_field command in FNAM variable, since this variable are passed as string you could use syntax … Read more

change attributes of an item in a screen and in a table control at runtime

add the following code in PBOloop at screen.if screen-name = ‘NAME_OF_FIELD_HERE_IN_CAPS’.set attributes of screen such as REQUIRED, INPUT, OUTPUT, INTENSIFIED, INVISIBLE, ACTIVE, DISPLAY_3D, VALUE_HELP to 1(ON) or 0(OFF)e.g. screen-output = 1.modify screen.endif.endloop if the field is part of a table control, put the above code within the the loop…endloop of the table control in PBO … Read more

Hide a column in a table control at runtime

1. define group name(s) for the columns to be hidden 2. Add the following code…(define)controls tbl_ctrl type tableview …wa like tbl_ctrl-cols.loop at tbl_ctrl-cols into wa.if wa-screen-group1 = wa-invisible = 1.modify tbl_ctrl-cols from waendifendloop Other Useful Link :Modify recording scenariochange attributes of an item in a screen and in a table control at runtimeCreate F4 helpDialog … Read more

Create F4 help

To avoid the standard F4 help to be show, insert the event PROCESS ON-VALUE-REQUEST request in the program and add a field statement for the field that should trigger the F4 help. In the module called from PROCESS ON-VALUE-REQUEST request, call function module F4IF_FIELD_VALUE_REQUEST. Example Code : process before output.….. process after input.….. PROCESS ON … Read more

Dialog Programming FAQ

1) Why do I need to do dialog programming?Ans: to have your own customized screens and processing 2) What does dialog programming consist of ?Ans: Screens with their corresponding processing code, Menu , module pool program 3) Difference between the normal report / program and Module pool program?Ans: Normal report can be run straight away … Read more