Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhancement spot for MSC1N,MSC2N, MSC3N

rekha_manjunath2
Participant
0 Kudos

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


3 REPLIES 3

Former Member
0 Kudos

Hi,

You add to create an enhancement at the end of routine FORM init_screen_data present in include program LCHRGF02.


Regards,

JL

PH_CAMPELS
Participant
0 Kudos

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.

michael_schleis
Explorer
0 Kudos

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