Sei sulla pagina 1di 1

Create a BADI implementation for MB_MIGO_BADI

Add new Tab to MIGO and store the custom values in a Z table, as there is no provision
for adding custom fields in MSEG table except for Accounting details by Standard Include
(CI_COBL).
Create a program with the screen type subscreen
in SE80 and design the layout for the
custom fields.
Declare the custom fields in a Z**TOP include.
Under the PBO method declare the program name and screen number
Under PAI method declare the field to u2018Xu2019.
Under the POST_DOCUMENT method write the code for appending the value to Z table
along with the values of the line item (In this case production order number, material,
u2026u2026.). For these values to be available here in this method use the memory
concept u201CExport to memory idu201D in the method LINE_MODIFY.
In order to do any validations to the custom fields, go to transaction SE80 and mention
the program Name created and in PROCESS ON VALUE_REQUEST create a module and
provide the validations required for those custom Fields.
In order to make the fields to be in display mode during the display of material document,
create a module under PBO and import the flag value and the production order number
details in the method LINE_MODIFY and if that flag = u2018Xu2019, use
Copy Code
1. LOOP AT SCREEN.
2. IF SCREEN‐NAME = <Z FIELD/>.
3. SCREEN‐INPUT = '0'.
4. MODIFY SCREEN.
5. ENDIF.
6. ENDLOOP.
Retrieve the values from the Z table matching the key field (production order number) and
pass the value of the custom field on to the screen.

Potrebbero piacerti anche