Saturday, August 16, 2014

BAPI for Material master - Number range

BAPI_MATERIAL_SAVEDATA is the BAPI available for Material master creation.

Material number range is (i.e internal or external) depending on the Material type. BAPI_MATERIAL_GETINTNUMBER BAPI can be used for getting material number based on the Material type.

CALL FUNCTION 'BAPI_MATERIAL_GETINTNUMBER' "Assign New Internal Numbers for a Material Type
EXPORTING
material_type = " bapimatdoa-matl_type Material type
* industry_sector = SPACE " bapimatdoa-ind_sector Industry sector
* required_numbers = 1 " bapimatall-req_numbers Set of material numbers required
IMPORTING
return = " bapireturn1 Return Parameter
TABLES
material_number = " bapimatinr Material numbers assigned
. " BAPI_MATERIAL_GETINTNUMBER

No comments:

Post a Comment