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: 

Delta for new field in 0MAT_PLANT_ATTR

Former Member
0 Kudos

hai

I ave added new field YYEISBE (safety stock) for the data source 0MAT_PLANT_ATTR.

I have done enhancement to popupate data to this field. Now can anyone tell me

How to do delta for 0mAT_PLANT_Attr.

Thanks

Jayaanand

1 ACCEPTED SOLUTION

former_member188827
Active Contributor
0 Kudos

if the datasource is delta enabled ( which 0MAT_PLANT_ATTR is ), it would only fetch records with delta in c_t_data in customer exit(RSAP0001). Just make sure that your select query to populate YYEISBE uses appropriate fields of c_t_data in where clause.

Regards

13 REPLIES 13

Former Member
0 Kudos

hai

Issue is critical. can anyone help me . How to do delta update for enhanced field YYEISBE.for keeping safety stock  Data for this field is updated from marc-eibse .

If  I change safety stock eibse (marc), YYEISBE is not getting changed.

Pls help

former_member188827
Active Contributor
0 Kudos

if the datasource is delta enabled ( which 0MAT_PLANT_ATTR is ), it would only fetch records with delta in c_t_data in customer exit(RSAP0001). Just make sure that your select query to populate YYEISBE uses appropriate fields of c_t_data in where clause.

Regards

0 Kudos

i wrote below code for populate data for yyeisbe.

Anything to add to this code.

   WHEN '0MAT_PLANT_ATTR'.
      C_T_DATA_TAB = C_T_DATA.
      LOOP AT C_T_DATA_TAB INTO C_T_DATA_WA.

        L_TABIX = SY-TABIX.
          C_T_DATA_WA-yyeisbe = C_T_DATA_WA-eisbe.
          MODIFY C_T_DATA_TAB FROM C_T_DATA_WA INDEX L_TABIX .

      ENDLOOP.

      C_T_DATA = C_T_DATA_TAB.

0 Kudos

Please code as follows:

   FIELD-SYMBOLS:<fs_data1> TYPE BIW_MARC_S.

WHEN '0MAT_PLANT_ATTR'.

      LOOP AT c_t_data ASSIGNING <fs_data1>.
      CLEAR:<fs_data1>yyeisbe.

                   <fs_data1>-yyeisbe = <fs_data1>-eisbe.
                 MODIFY c_t_data FROM <fs_data1>.
    ENDLOOP.

anilkumar_kalkivai
Active Participant
0 Kudos

Hi,

You have to write your logic in EXIT_SAPLRSAP_002

It is for master data attributes.

Regards,

Anil.

0 Kudos

This message was moderated.

0 Kudos

hai

thanks for your reply. Yesterday my server was down . So I could not try.

Can you tell me what the project name i have to give in cmod

0 Kudos

You can give any name starting with "Y" or "Z".

Regards

0 Kudos

Hi Jayalakshmi,

Try the below code.

Go To CMOD--Create the project name starts with ZXXXX.---> add RSAP0001--> click on the enhamcement components-->double click on EXIT_SAPLRSAP_002--> it will takes you to include ZXRSAu02--> double click on this include --> and write your code.

CASE I_DATASOURCE.

C_T_DATA_TAB = C_T_DATA.

WHEN '0MAT_PLANT_ATTR'.


     

      LOOP AT C_T_DATA_TAB INTO C_T_DATA_WA.


        L_TABIX = SY-TABIX.

SELECT SINGLE  eisbe

                            INTO C_T_DATA_WA-eisbe
             
FROM MARC 

                           WHERE MATNR = C_T_DATA_WA-MATNR.

      if sy-subrc = 0.


          C_T_DATA_WA-yyeisbe = C_T_DATA_WA-eisbe.

          MODIFY C_T_DATA_TAB FROM C_T_DATA_WA INDEX L_TABIX .

      endif.

      ENDLOOP.


      C_T_DATA = C_T_DATA_TAB.

endcase.

Let me know if any issues.

Regards,

Gurunath Kumar D

0 Kudos

hai

thanks it is working now.

anilkumar_kalkivai
Active Participant
0 Kudos

Hi,

To Find project name:

1. Go to table MODSAP. Give the enhancement name in MEMBER field and get the SAP extension name.

2. In the table MODACT give field MEMBER( Enhancement) as the SAP Extension name which you got from the MODSAP table.

3. Now you can get the project name.

Regards,

Anil.

gurunathkumar_dadamu
Active Contributor
0 Kudos

Hi Jayalakshmi,

Have you tried .please let me know if any issues.

Regards,

Gurunath Kumar D

0 Kudos

hai

Thanks . I have tried. It is working now.

Thanks again