SAP batch master data enhancement

tags: SAP

MSC1N / MSC2N / MSC3N batch enhancement

The main program of these transaction codes is SAPLCHRG, and there are two places on the image interface. It is possible to enhance the reserved sub-screen, where 2 is a sub-screen of a Tab page. Note that the versions may not have this enhancement point.

 

The enhancement point is ES_BATCH_MASTER, you can see the details, you can see the sample class CL_EX_VB_BM_ADD_SCREEN_FIELDS,

It can be seen that the enhanced sub-screen, the first line below is the sub screen inside the figure above, and the second line below is the top picture of the top, 2999 is a fill empty screen reserved in SaplchRG.

 

first stepFor MCHA and MCH1 Append, guests, guests (Whether I want to be all, I am uncertain, I may need to refer to the currently configured batch level: When the batch is the material level, the MCH1 is definitely going to append.), The Append standard table field ZZ or YY begins. Alternatively, a self-built table master key is also built similar to MCHA, and the self-built table will be read and save when BADI is enhanced, and this means does not show.

Second stepCreate a function group, the customs screen is placed here, and the general screen is enhanced.

DATA:gs_mcha  TYPE mcha,
           GV_AKTYP TYPE AKTYP. "is related to the current editing view status

 Function ZMMFM001_AFTER_9901_PAI. "The latest value after PAI is selected from this function to the MSC * N master program
  es_mcha = gs_mcha.
ENDFUNCTION.

 Function ZMMFM001_BEFORE_9901_PBO. "PBO previous value passed from the MSC * n main program to this function group
   gs_mcha = is_mcha.
  gv_aktyp = iv_aktyp.
ENDFUNCTION.

third stepImplementing an enhanced ES_BATCH_MASTER can perform a button in SE19, or SPRO-batch management - the main data.

After implementation, after implementation (implementation class, you can copy the sample class), fill in the screen called the Sub-screen call, is the second step we built screen

Below is a brief description of the method of implementing the class

AFTER_CUSTOM_SCREEN_PAI

After custom subscreen PAI processing

BEFORE_CUSTOM_SUBSCREEN_PBO

Customs screen display

SAVE_DATA

Save

READ_DATA

read

INITIALIZE_DATA

Initialize custom data

CHECK_DATA_CHANGED

Check changed custom data

SET_TABSTRIP_NAME

Set the text of the Tab tab in the top of the top

BEFORE_CUSTOM_SUBSCREEN_PAI

After the wire system

If it is a field directly append's direct Append, the following methods are required, Read and Save have system yourself. If it is a self-built table, you need to process Save_Data and read_data in the table.

  METHOD if_bm_add_screen_fields~before_custom_subscreen_pbo.
    CALL FUNCTION 'ZMMFM001_BEFORE_9901_PBO'
      EXPORTING
        is_mcha  = is_mcha
        IV_aktyp = IV_AKTYP. "h Newly built a display V modification
  ENDMETHOD.
  
 METHOD if_bm_add_screen_fields~after_custom_screen_pai.
    CALL FUNCTION 'ZMMFM001_AFTER_9901_PAI'
      IMPORTING
        es_mcha = es_mcha.
  ENDMETHOD. 

 

 

 

 

Intelligent Recommendation

Picture data enhancement and batch compression

Before training the model, there must be enough training set. When our data set is small in some special circumstances, ImageDataGenerator can be used. This article will take a photo of a cat as an ex...

Python picture batch data enhancement

Image rotation Mirror flip At the same time Multi-threaded image enhancement Random rotation, cropping, noise...

Supplier Master Data Screen Enhancement

Scenario: Add a button to the supplier master data to realize other customized customized data as shown in the screenshot below. BADI enhancements required: VENDOR_ADD_DATA_CS and VENDOR_ADD_DATA Proc...

How to display the SAP CRM product master data hiding out in the batch ID field

According to SAP help, it is by default hidden: We have to manually set it as visible in WebUI component workbench: It looks like below: For more Jerry's original article, please pay attention to the ...

SAP-ABAP-How to transmit material master data, supplier master data, work order, purchase order, etc. in real time to external systems - implicit enhancement.

I want to transmit various primary data to the external system in real time, and it is definitely the need to trigger enhancement when saving and modifying the primary data, and then calls the interfa...

More Recommendation

SAP creates supplier master data

Our ultimate goal is to create a sales order, then ship it, then invoice. But before that, there must be materials that can be sold. And the materials must be in stock. Where does the inventory of mat...

SAP-PP master data introduction

PP master data is a description of the production-related information that must be set in the system before the start of the production process, which will have an impact on the process of production ...

Replacement of SAP asset master data

Mark Asset replacement mainly refers to the replacement of GGB1 asset master data, as shown in the figure below; This time, the AS01 asset card was created after configuration and an error was reporte...

SAP deletes material master data

SAP deletes material master data 1. SAP material master data is deleted, and the transaction code that deletes the tag is mm17, as shown below: Select the factory-class DF; and execute 2. You can copy...

Image Data Set Batch Data Enhancement

Image data set batch data enhancement (nine image processing methods, increase to 10 times) Data enhancement code reference Batch data enhanced code Code file description Data enhancement code The CK ...

Copyright  DMCA © 2018-2024 - All Rights Reserved - www.programmersought.com  User Notice

Top