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: 

bapi

Former Member
0 Kudos

Hi,

Iam eswar, iam new to bapi. I got one requirement that the articles from one existing store should copy in to a new store through a bapi using bapi_material_maintaindata_rt.if it runs successfully it should show success message with material is created and also it should update in marc table. please anybody help me to find that.very urgent.

Thanks,

Eswar.

3 REPLIES 3

Former Member
0 Kudos

hi sathish,

this is for u r info..

to pass the values in the Fm--> if u goto se37 enter this FM,,, click on the documentation... in this they have clearly given the deatails to use this FM.

if u want more info u can search with where user list

CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
  EXPORTING
    HEADDATA = HEADDATA
  IMPORTING
    RETURN = RETURN
  TABLES
    WAREHOUSENUMBEREXTX = WAREHOUSENUMBEREXTX
    WAREHOUSENUMBEREXT = WAREHOUSENUMBEREXT
    WAREHOUSENUMBERDATAX = WAREHOUSENUMBERDATAX
    STORAGETYPEDATA = STORAGETYPEDATA
    STORAGETYPEDATAX = STORAGETYPEDATAX
    STORAGETYPEEXT = STORAGETYPEEXT
    STORAGETYPEEXTX = STORAGETYPEEXTX
    WAREHOUSENUMBERDATA = WAREHOUSENUMBERDATA
    LAYOUTMODULEASSGMT = LAYOUTMODULEASSGMT
    LAYOUTMODULEASSGMTX = LAYOUTMODULEASSGMTX
    TAXCLASSIFICATIONS = TAXCLASSIFICATIONS
    VALUATIONDATA = VALUATIONDATA
    VALUATIONDATAX = VALUATIONDATAX
    VALUATIONEXT = VALUATIONEXT
    VALUATIONEXTX = VALUATIONEXTX
    MATERIALLONGTEXT = MATERIALLONGTEXT
    PLANTKEYS = PLANTKEYS
    STORAGELOCATIONKEYS = STORAGELOCATIONKEYS
    DISTRCHAINKEYS = DISTRCHAINKEYS
    WAREHOUSENOKEYS = WAREHOUSENOKEYS
    STORAGETYPEKEYS = STORAGETYPEKEYS
    VALUATIONTYPEKEYS = VALUATIONTYPEKEYS
    POSEXTX = POSEXTX
    SALESDATA = SALESDATA
    SALESDATAX = SALESDATAX
    SALESEXT = SALESEXT
    SALESEXTX = SALESEXTX
    POSDATA = POSDATA
     POSDATAX = POSDATAX
     POSEXT = POSEXT
     ADDNLCLIENTDATAX = ADDNLCLIENTDATAX
     MATERIALDESCRIPTION = MATERIALDESCRIPTION
     PLANTDATA = PLANTDATA
     PLANTDATAX = PLANTDATAX
     PLANTEXT = PLANTEXT
     PLANTEXTX = PLANTEXTX
     FORECASTPARAMETERS = FORECASTPARAMETERS
     ADDNLCLIENTDATA = ADDNLCLIENTDATA
     VARIANTSKEYS = VARIANTSKEYS
     CHARACTERISTICVALUE = CHARACTERISTICVALUE
     CHARACTERISTICVALUEX = CHARACTERISTICVALUEX
     CLIENTDATA = CLIENTDATA
     CLIENTDATAX = CLIENTDATAX
     CLIENTEXT = CLIENTEXT
     CLIENTEXTX = CLIENTEXTX
     STORAGELOCATIONEXT = STORAGELOCATIONEXT
     STORAGELOCATIONEXTX = STORAGELOCATIONEXTX
     UNITSOFMEASURE = UNITSOFMEASURE
     UNITSOFMEASUREX = UNITSOFMEASUREX
     UNITOFMEASURETEXTS = UNITOFMEASURETEXTS
     INTERNATIONALARTNOS = INTERNATIONALARTNOS
     VENDOREAN = VENDOREAN
     STORAGELOCATIONDATAX = STORAGELOCATIONDATAX
     FORECASTPARAMETERSX = FORECASTPARAMETERSX
     FORECASTVALUES = FORECASTVALUES
     TOTALCONSUMPTION = TOTALCONSUMPTION
     UNPLNDCONSUMPTION = UNPLNDCONSUMPTION
     PLANNINGDATA = PLANNINGDATA
     PLANNINGDATAX = PLANNINGDATAX
     STORAGELOCATIONDATA = STORAGELOCATIONDATA
   EXCEPTIONS
  	OTHERS = 01.

0 Kudos

Hi Naresh,

Thanks for responding. i had pass data in headdata , plantdata and plantdatax, after successful running of bapi it should raise a message that article created and again we have to call bapi__TRANSACTION_COMMIT’ to update the base table marc..but iam getting article changed.To get the required one which data additionally i have to pass. pl help me.

Thanks,

satish.

0 Kudos

hi

r u callin bapi__TRANSACTION_COmmit immediately after calling the FM... then the upadating details will be written in Application log... u can see the application log in SLG1 transactio,...

once if u read the documentation they have clearly metioned about the return values..