2014 Jan 31 1:23 PM
Hi,
There is a requirement to include the GOS for the batch master transaction MSC1N, MSC2N and MSC3N.
Object type 'BUS1001002' and corresponding Document Type, and Content Repository created.
After Material number and batch is entered the next screen should give the GOS in the toolbar.
Kindly let me know the enhancement spot and where I can add the below code :-
DATA: LR_GOS_MANAGER TYPE REF TO CL_GOS_MANAGER,
IS_BORIDENT TYPE BORIDENT.
data : l_objky(23) type c.
CONCATENATE dfbatch-matnr dfbatch-werks dfbatch-werks INTO l_objky.
IS_BORIDENT-OBJTYPE = 'BUS1001002'.
IS_BORIDENT-OBJKEY = l_objky.
CREATE OBJECT LR_GOS_MANAGER
EXPORTING
IS_OBJECT = IS_BORIDENT
IP_NO_COMMIT = ' '
EXCEPTIONS
OBJECT_INVALID = 1.
The GOS in the tool bar should appear in the 2nd screen of msc1n, msc2n and msc3n.
Please help.
Regards,
Rekha
2016 Mar 04 12:52 PM
Hi,
You add to create an enhancement at the end of routine FORM init_screen_data present in include program LCHRGF02.
Regards,
JL
2020 Apr 15 1:47 PM
There is an error i n the code :
line
CONCATENATE dfbatch-matnr dfbatch-werks dfbatch-werks INTO l_objky.
should be replaced by
CONCATENATE dfbatch-matnr dfbatch-charg dfbatch-werks INTO l_objky.
2024 Mar 25 5:32 PM
Hello all,
There is another error at the coding.
The length of variable l_objky should be extended at least to 32 characters. Then all content of material number, batch number and plant will fit into the key field. This is valid for the "old" ECC world.
At S/4 Hana the length should be least 54 characters, due to increased material number length.
Material number = 40 chars, Batch number = 10 chars & Plant = 4 chars
BR Michael