Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9730

Re: Use of BAPI -> BAPI_PRDSRVAPS_SAVEMULTI2

$
0
0

I see in the bapi BAPI_PRDSRVAPS_SAVEMULTI2 tab "Tables", the help of table EXTENSION_IN:

"

Specific information for this extension parameter:

The BAdI "APO_BAPI_BUS10001-CHANGE_SAVEMULTIPLE2" should be used to evaluate this extension parameter.

The following auxiliary structures are available for this extension parameter:

  • BAPI_TE_SAPAPO_MATKEY: Auxiliary structure for the customer enhancement for database table "/SAPAPO/MATKEY". This structure must be compatible with the customer include "CI_MATKEY".
  • BAPI_TE_SAPAPO_MATKEY_X: Auxiliary structure for change parameter of the customer enhancement for database table "/SAPAPO/MATKEY". The relationship between parameter and change parameter takes place using the table key. This structure must be compatible with customer include "CI_MATKEYX".
  • BAPI_TE_SAPAPO_MATLOC: Auxiliary structure for customer enhancement for database table "/SAPAPO/MATLOC". This structure must be compatible with customer include "CI_MATLOC".
  • BAPI_TE_SAPAPO_MATLOC_X: Auxiliary structure for change parameter for the customer enhancement for database table "/SAPAPO/MATLOC". The relationship between parameter and change parameter is a result of the table key. This structure must be compatible with customer include "CI_MATLOCX"."

 

I analyse the methode APO_BAPI_BUS10001-CHANGE_SAVEMULTIPLE2. There are not a table type "/SAPAPO/matloc" where i could move my data in this table. So I can do anything with this badi.

 

Usually, there is a table ET_TABLE to represente the table you want to update. Then i can do:

data ls_matloc_spe     type ci_matloc.

 

MOVE LS_EXTENSION_IN+30 to ls_matloc_spe.

MOVE CORRESPONDING FIELDS ls_matloc_spe to ls_matloc.

 

APPEND LS_MATLOC to ET_MATLOC.

 

Thanks


Viewing all articles
Browse latest Browse all 9730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>