Bapi for mrp wfich has material quantity as import parameter

hi to all,
i need a bapi for mpr run  which has material quantity as import paramaeter so that we can create pr for given material quantity.
Regards,
Manoj Rwat.

HI!
Try,
MD_MRP_SINGLE_MAT_REPLAN
BAPI_ALM_ORDER_MAINTAIN
hope this will helps you.
regards,
Kiran

Similar Messages

  • Kindly give authorization object for mrp type in material master

    Hi friends,
    Kind tell me what is the authorization object for MRP type in material master.
    Your help is considered more important.
    thanks in advance
    willaims

    hi,
    check your authorisation objects here:
    Go to PFCG --> Environment (at menu bar) --> authorization objects --> Display...
    Here see for MRP and MM for material managament in the tree structure...
    Regards
    Priyanka.P

  • Need of bapi for getting details of material strage locations

    hi all,
    i need one bapi which gives details of for how many storage locations the material has been extended for particular plant..

    hi
    this is a sample bapi for getdetails.
    DATA : P0008 LIKE P0008.
    DATA : ONDATE TYPE SY-DATUM.
    SELECT SINGLE * FROM PA0008
    INTO CORRESPONDING FIELDS OF P0008
    WHERE PERNR = ITAB-PERNR
    AND BEGDA <= ONDATE
    AND ENDDA >= ONDATE.
    DATA : WAGETYPES LIKE BAPIP0008P OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'BAPI_BASICPAY_GETDETAIL'
    EXPORTING
    EMPLOYEENUMBER = PERNR
    SUBTYPE = P0008-SUBTY
    OBJECTID = P0008-OBJPS
    LOCKINDICATOR = P0008-SPRPS
    VALIDITYBEGIN = P0008-BEGDA
    VALIDITYEND = P0008-ENDDA
    RECORDNUMBER = P0008-SEQNR
    TABLES
    WAGETYPES = WAGETYPES.
    regards
    sravani yendru

  • Handle multiple material numbers as import parameter in a function module

    Hello Folks,
    I want to handle multiple material numbers as import parameters.. I have tried using table types but having problem while reading the data....
    My requirement is user will input say 10 materials , now i need to get all the information for that particular material ..
    I am unable to use for all entries as it is saying that it is not internal table... I have found table types which is having sigon , option, low and high fields but user doesn't want it... He wants to enter only materials... Currently am using this MD_T_MATNR(table type)
    I am stuck up here..
    Appreciate any kind of help.
    Regards,
    Raj

    Hi,
    it looks like you are on a good way, just something little is missing. Type MD_T_MATNR is suitable for your issue. I have tried it and probably your problem is that You have to use
    SELECT ... FOR ALL ENTRIES IN it_matnr WHERE mara~matnr EQ it_matnr~table_line.
    instead of
    SELECT ... FOR ALL ENTRIES IN it_matnr WHERE mara~matnr EQ it_matnr~matnr.
    In this example I suppose that a name of your variable of type MD_T_MATNR is it_matnr. Problem is that table line is not structure, but data element, therefore You have to use ~table_line instead of ~matnr.
    Hope it helps.
    Adrian

  • BAPI for process order header delivered quantity

    Hi,
    current requirement is to get the process order quantity with drawn and delivered quantity , when we try using the BAPI
    BAPI_PROCORD_GET_DETAIL , it does not have the process order delivered quantity - it has only total quantity  for which process order is created .
    Is there a way or any standard BAPI/RFC gives the below :
    1. Process Order Header Delivered Quantity
    2. Process order component's quantity with drawn
    Regards,
    Madhu Kiran

    Hi Madhu Kiran,
    BAPI_PROCORD_GET_DETAIL of course has all the required fields:
    1. --> check table POSITION, field DELIVERED_QUANTITY
    2. --> check table COMPONENT, field WITHDRAWN_QUANTITY
    Regards,
    Andreas

  • Bapi for MRP simulation

    Hi everybody.
    I need a BAPI to run a MRP (MD02 like) for a material in a plant,  in test mode,  and then recover the final u2018available quantityu2019 from this  running, in order to show it in a report development  as u2018Suggested purchasing quantityu2019.
    Any suggestions would be appreciated.

    HI!
    Try,
    MD_MRP_SINGLE_MAT_REPLAN
    BAPI_ALM_ORDER_MAINTAIN
    hope this will helps you.
    regards,
    Kiran

  • BAPI   for    MRP AREA

    I create material  using bapi  BAPI_MATERIAL_SAVEDATA
    in  VIEW  MRP1    it need to use the button  'mrp area'  to inut the mrp area
    double click  and inout  mrp type , mrp controller  .....
    is there anyone konw   the bapi to do it ?
    many thanks!!

    BAPI_MATERIAL_SAVEDATA  field MARA-KZKFG not in ClientData
    if its not in BAPI_MARA then you have to use ExtensionIn table to populate this field.
    In Extensionin Table you have to enter the following two fields
    structure name "BAPI_TE_MARA" and
    the values for all the fields in this structure in valuepart1 field.
    matnr (18), zfield1(10), zfield2(10)
    Then it_extensionin-valuepart1 should have matnr in the first 18 char's and then zfield1 in the next 10 chars and zfield2 in the next 10 chars. so you should have filled the first 38 chars of valuepart1. In your case you dont need is_bapi_te_mara
    you can just say
    it_extensionin-valuepart1+0(18) = matnr.
    it_extensionin_valuepart1+18(10) = zfield1
    it_extensionin_valuepart1+28(10) = zfield2
    append.
    it should be something like this. Please try this and let me know if you still face any problems. Let me know the structure of bapi_te_mara.
    BAPI_TE_MARA looks like the following;
    MATERIAL MATNR CHAR 18 0
    .APPEND ZABAPI_TE_MARA 0 0 Missing fields fo
    EXTWG EXTWG CHAR 18 0 Ext
    ZZLSTATION1 ZLSTATION1 CHAR 13 0 Line
    ZZLFEEDER1 ZLFEEDER1 CHAR 12 0 Line
    FUNCTION z_mmc_local_material_create.
    ""Local interface:
    *" IMPORTING
    *" VALUE(SINGLE) TYPE CHAR1
    *" VALUE(IV_UNAME) TYPE SYUNAME OPTIONAL
    *" EXPORTING
    *" VALUE(MESSAGE) TYPE ZCHAR150
    *" TABLES
    *" MATDATA STRUCTURE ZMMCLOCMM
    *" EXCEPTIONS
    *" ERROR
    TABLES: zmmcuser. "DG28347E
    TYPE-POOLS shlp.
    Tables
    TABLES: t9mmclocmm,
    t9mmcuser,
    t100,
    z19ppl_mm_dat,
    t134t,
    t9mmclocmt,
    z19sloccon.
    Strutures and internal tables
    DATA: is_headdata LIKE bapimathead,
    is_clientdata LIKE bapi_mara,
    is_clientdatax LIKE bapi_marax,
    is_plantdata LIKE bapi_marc,
    is_plantdatax LIKE bapi_marcx,
    is_forecastparameters LIKE bapi_mpop,
    is_forecastparametersx LIKE bapi_mpopx,
    is_planningdata LIKE bapi_mpgd,
    is_planningdatax LIKE bapi_mpgdx,
    is_storagelocationdata LIKE bapi_mard,
    is_storagelocationdatax LIKE bapi_mardx,
    is_valuationdata LIKE bapi_mbew,
    is_valuationdatax LIKE bapi_mbewx,
    is_warehousenumberdata LIKE bapi_mlgn,
    is_warehousenumberdatax LIKE bapi_mlgnx,
    is_salesdata LIKE bapi_mvke,
    is_salesdatax LIKE bapi_mvkex,
    is_storagetypedata LIKE bapi_mlgt,
    is_storagetypedatax LIKE bapi_mlgtx,
    is_return LIKE bapiret2,
    is_bapi_te_mara LIKE bapi_te_mara,
    is_bapi_te_marax LIKE bapi_te_marax,
    it_materialdescription LIKE bapi_makt
    OCCURS 0
    WITH HEADER LINE,
    it_unitsofmeasure LIKE bapi_marm
    OCCURS 0
    WITH HEADER LINE,
    it_unitsofmeasurex LIKE bapi_marmx
    OCCURS 0
    WITH HEADER LINE,
    it_internationalartnos LIKE bapi_mean
    OCCURS 0
    WITH HEADER LINE,
    it_materiallongtext LIKE bapi_mltx
    OCCURS 0
    WITH HEADER LINE,
    it_taxclassifications LIKE bapi_mlan
    OCCURS 0
    WITH HEADER LINE,
    it_returnmessages LIKE bapi_matreturn2
    OCCURS 0
    WITH HEADER LINE,
    it_prtdata LIKE bapi_mfhm
    OCCURS 0
    WITH HEADER LINE,
    it_prtdatax LIKE bapi_mfhmx
    OCCURS 0
    WITH HEADER LINE,
    it_extensionin LIKE bapiparex
    OCCURS 0
    WITH HEADER LINE,
    it_extensioninx LIKE bapiparexx
    OCCURS 0
    WITH HEADER LINE.
    DATA: BEGIN OF it_error OCCURS 0,
    uname LIKE t9mmcuser-uname,
    cltprt LIKE z19ppl_mm_dat-cltprt,
    prttx LIKE z19ppl_mm_dat-prttx,
    message(150),
    msgno(23),
    END OF it_error.
    DATA: BEGIN OF it_class OCCURS 0,
    mtart LIKE t9mmclocmm-mtart,
    traw LIKE t9mmclocmm-traw,
    cltprt LIKE z19ppl_mm_dat-cltprt,
    prttx LIKE z19ppl_mm_dat-prttx,
    END OF it_class.
    DATA: BEGIN OF it_mmflag OCCURS 0,
    cltprt LIKE z19ppl_mm_dat-cltprt,
    mmflag LIKE z19ppl_mm_dat-mmflag,
    END OF it_mmflag.
    DATA: BEGIN OF it_extend OCCURS 0.
    INCLUDE STRUCTURE zmmclocmm.
    DATA: END OF it_extend.
    BDC Data
    DATA: BEGIN OF it_bdctab OCCURS 30.
    INCLUDE STRUCTURE bdcdata.
    DATA: END OF it_bdctab.
    Data returned from transaction
    DATA: BEGIN OF it_trn_ret OCCURS 10.
    INCLUDE STRUCTURE bdcmsgcoll.
    DATA: END OF it_trn_ret.
    Email
    DATA: BEGIN OF it_mail_text OCCURS 0.
    INCLUDE STRUCTURE solisti1.
    DATA: END OF it_mail_text.
    Storage location and warehouse data
    DATA: BEGIN OF it_whse OCCURS 0,
    cltprt LIKE zmmclocmm-cltprt,
    lgnum LIKE z19sloccon-lgnum,
    END OF it_whse.
    DATA: BEGIN OF it_sloc OCCURS 0,
    cltprt LIKE zmmclocmm-cltprt,
    lgort LIKE z19sloccon-lgort,
    END OF it_sloc.
    DATA: BEGIN OF it_lgnum OCCURS 0,
    lgnum LIKE z19sloccon-lgnum,
    END OF it_lgnum.
    DATA: BEGIN OF it_lgort OCCURS 0,
    lgort LIKE z19sloccon-lgort,
    END OF it_lgort.
    DATA: BEGIN OF it_sloc_extend OCCURS 0.
    INCLUDE STRUCTURE zmmclocmm.
    DATA: END OF it_sloc_extend.
    Start of Insert TT67507
    DATA: BEGIN OF it_qm OCCURS 0,
    matnr LIKE mara-matnr,
    werks LIKE marc-werks,
    END OF it_qm.
    End of Insert TT67507
    DATA: v_slin TYPE i,
    v_wlin TYPE i,
    v_index TYPE i,
    v_lgort LIKE z19sloccon-lgort,
    v_lgnum LIKE z19sloccon-lgnum.
    Work fields
    DATA: v_ermsg(500),
    v_subrc LIKE sy-subrc,
    v_mode,
    v_mail_subject LIKE sodocchgi1-obj_descr,
    v_email LIKE sadrud,
    v_single,
    v_message TYPE zchar150,
    v_mtart LIKE t9mmclocmt-mtart,
    v_traw LIKE t9mmclocmt-traw,
    v_skip,
    v_hold_cltprt LIKE z19ppl_mm_dat-cltprt.
    Constants
    CONSTANTS: co_mark VALUE 'X',
    co_klart LIKE rmclf-klart VALUE '001',
    co_class1 LIKE rmclf-class VALUE 'PARTNUM', "DK69475E
    co_class2 LIKE rmclf-class VALUE 'L/STATION', "DK69475E
    co_ssqss(4) VALUE '0001', "TT67505
    co_insp1(2) VALUE '01', "TT67505
    co_insp2(2) VALUE '08'. "TT67505
    CHECK NOT matdata[] IS INITIAL.
    v_single = single.
    CLEAR: it_class,
    it_error,
    message,
    v_message,
    it_extend,
    v_hold_cltprt.
    REFRESH: it_class,
    it_error,
    it_extend,
    it_sloc,
    it_whse,
    it_sloc_extend.
    LOOP AT matdata.
    Get default data
    SELECT SINGLE * FROM t9mmclocmm
    WHERE mtart = matdata-mtart
    AND traw = matdata-traw.
    IF sy-subrc NE 0.
    IF v_single = space.
    SELECT uname INTO t9mmcuser-uname
    FROM t9mmcuser WHERE mtart = matdata-mtart
    AND traw = matdata-traw.
    CLEAR it_error.
    it_error-uname = t9mmcuser-uname.
    it_error-cltprt = matdata-cltprt.
    it_error-prttx = matdata-prttx.
    CONCATENATE 'Table T9MMCLOCMM not maintained for'
    matdata-mtart
    matdata-traw
    INTO it_error-message SEPARATED BY space.
    APPEND it_error.
    ENDSELECT.
    ELSE.
    CONCATENATE 'Table T9MMCLOCMM not maintained for'
    matdata-mtart
    matdata-traw
    INTO v_message SEPARATED BY space.
    ENDIF.
    CONTINUE.
    ENDIF.
    Extract storage location and warehouse data
    CLEAR: v_lgort,
    v_lgnum.
    PERFORM fm_sloc_whse_data USING matdata-cltprt
    matdata-prttx.
    IF t9mmclocmm-lgort NE space.
    v_lgort = t9mmclocmm-lgort.
    ENDIF.
    Initialise
    CLEAR: is_headdata,
    is_clientdata,
    is_clientdatax,
    it_materialdescription,
    it_taxclassifications,
    is_plantdata,
    is_plantdatax,
    is_forecastparameters,
    is_forecastparametersx,
    is_storagelocationdata,
    is_storagelocationdatax,
    is_valuationdata,
    is_valuationdatax,
    is_warehousenumberdata,
    is_warehousenumberdatax,
    is_salesdata,
    is_salesdatax,
    is_bapi_te_mara,
    is_bapi_te_marax,
    it_extensionin,
    it_extensioninx,
    is_return,
    it_mail_text.
    REFRESH: it_materialdescription,
    it_taxclassifications,
    it_extensionin,
    it_extensioninx,
    it_mail_text.
    Fill BAPI structures
    is_headdata-material_external = matdata-cltprt.
    is_headdata-ind_sector = t9mmclocmm-mbrsh.
    is_headdata-matl_type = t9mmclocmm-mtart.
    is_headdata-basic_view = co_mark.
    is_headdata-sales_view = co_mark.
    is_headdata-purchase_view = co_mark.
    is_headdata-mrp_view = co_mark.
    is_headdata-storage_view = co_mark.
    is_headdata-warehouse_view = co_mark.
    is_headdata-quality_view = co_mark.
    is_headdata-account_view = co_mark.
    is_headdata-cost_view = co_mark.
    IF t9mmclocmm-prmod NE space.
    is_headdata-forecast_view = co_mark.
    ENDIF.
    Basic data
    IF t9mmclocmm-meins = space.
    is_clientdata-base_uom = matdata-meins.
    ELSE.
    is_clientdata-base_uom = t9mmclocmm-meins.
    ENDIF.
    is_clientdata-matl_group = t9mmclocmm-matkl.
    is_clientdata-division = t9mmclocmm-spart.
    is_clientdatax-base_uom = co_mark.
    is_clientdatax-matl_group = co_mark.
    is_clientdatax-division = co_mark.
    PANDA
    IF t9mmclocmm-traw = 'P1'.
    is_clientdata-trans_grp = t9mmclocmm-tragr.
    is_clientdatax-trans_grp = co_mark.
    ENDIF.
    Quality
    is_clientdata-qm_procmnt = co_mark. "TT67507
    is_clientdatax-qm_procmnt = co_mark. "TT67505
    is_plantdata-ctrl_key = co_ssqss. "TT67507
    is_plantdatax-ctrl_key = co_mark. "TT67507
    Description data
    it_materialdescription-langu = 'E'.
    it_materialdescription-matl_desc = matdata-prttx.
    APPEND it_materialdescription.
    Tax classifications for PANDA
    IF t9mmclocmm-traw = 'P1'.
    CLEAR it_taxclassifications.
    it_taxclassifications-depcountry = t9mmclocmm-aland.
    it_taxclassifications-tax_type_1 = t9mmclocmm-tatyp.
    it_taxclassifications-taxclass_1 = t9mmclocmm-taxkm.
    APPEND it_taxclassifications.
    ENDIF.
    Country of origin for XP via ZMMCM
    IF v_single NE space
    AND t9mmclocmm-traw = 'XP'
    AND t9mmclocmm-herkl = space.
    t9mmclocmm-herkl = matdata-herkl.
    ENDIF.
    Plant data
    is_plantdata-plant = t9mmclocmm-werks.
    is_plantdata-profit_ctr = t9mmclocmm-prctr.
    is_plantdata-pur_group = t9mmclocmm-ekgrp.
    is_plantdata-pur_status = t9mmclocmm-mmsta.
    is_plantdata-comm_code = t9mmclocmm-stawn.
    is_plantdata-countryori = t9mmclocmm-herkl.
    is_plantdata-pvalidfrom = sy-datum. "mmstd
    is_plantdata-sloc_exprc = t9mmclocmm-lgfsb.
    is_plantdata-mrpprofile = t9mmclocmm-dispr.
    is_plantdata-mrp_ctrler = t9mmclocmm-dispo.
    is_plantdata-lotsizekey = t9mmclocmm-disls.
    is_plantdatax-plant = t9mmclocmm-werks.
    is_plantdatax-profit_ctr = co_mark.
    is_plantdatax-pur_group = co_mark.
    is_plantdatax-pur_status = co_mark.
    is_plantdatax-comm_code = co_mark.
    is_plantdatax-countryori = co_mark.
    is_plantdatax-pvalidfrom = co_mark.
    is_plantdatax-sloc_exprc = co_mark.
    is_plantdatax-mrpprofile = co_mark.
    is_plantdatax-mrp_ctrler = co_mark.
    is_plantdatax-lotsizekey = co_mark.
    PANDA
    IF t9mmclocmm-traw = 'P1'.
    is_plantdata-loadinggrp = t9mmclocmm-ladgr.
    is_plantdata-gr_pr_time = t9mmclocmm-webaz.
    is_plantdata-specprocty = t9mmclocmm-sobsk.
    is_plantdata-dep_req_id = t9mmclocmm-sbdkz.
    is_plantdatax-loadinggrp = co_mark.
    is_plantdatax-gr_pr_time = co_mark.
    is_plantdatax-specprocty = co_mark.
    is_plantdatax-dep_req_id = co_mark.
    ENDIF.
    Forecast data
    IF t9mmclocmm-prmod NE space.
    is_forecastparameters-plant = t9mmclocmm-werks.
    is_forecastparameters-fore_model = t9mmclocmm-prmod.
    is_forecastparametersx-plant = t9mmclocmm-werks.
    is_forecastparametersx-fore_model = co_mark.
    ENDIF.
    Storage location data
    IF t9mmclocmm-traw = 'P1' " PANDA
    OR v_lgort NE space.
    is_storagelocationdata-plant = t9mmclocmm-werks.
    is_storagelocationdata-stge_loc = v_lgort.
    is_storagelocationdatax-plant = t9mmclocmm-werks.
    is_storagelocationdatax-stge_loc = v_lgort.
    ENDIF.
    Valuation data
    is_valuationdata-val_area = t9mmclocmm-werks.
    is_valuationdata-val_type = space.
    is_valuationdata-val_class = t9mmclocmm-bklas.
    is_valuationdata-orig_group = t9mmclocmm-hrkft.
    is_valuationdatax-val_area = t9mmclocmm-werks.
    is_valuationdatax-val_type = space.
    is_valuationdatax-val_class = co_mark.
    is_valuationdatax-orig_group = co_mark.
    Warehouse data
    IF v_lgnum NE space.
    is_warehousenumberdata-whse_no = v_lgnum.
    is_warehousenumberdatax-whse_no = v_lgnum.
    ENDIF.
    Sales data for PANDA
    IF t9mmclocmm-traw = 'P1'.
    is_salesdata-sales_org = t9mmclocmm-vkorg.
    is_salesdata-distr_chan = t9mmclocmm-vtweg.
    is_salesdata-delyg_plnt = t9mmclocmm-dwerk.
    is_salesdata-item_cat = t9mmclocmm-mtpos.
    is_salesdatax-sales_org = t9mmclocmm-vkorg.
    is_salesdatax-distr_chan = t9mmclocmm-vtweg.
    is_salesdatax-delyg_plnt = co_mark.
    is_salesdatax-item_cat = co_mark.
    ENDIF.
    Additional data
    is_bapi_te_mara-material = matdata-cltprt.
    is_clientdata-extmatlgrp = t9mmclocmm-extwg.
    is_bapi_te_mara-kzkfg = t9mmclocmm-kzkfg.
    is_bapi_te_marax-material = matdata-cltprt.
    is_clientdatax-extmatlgrp = co_mark.
    is_bapi_te_marax-kzkfg = co_mark.
    it_extensionin-structure = 'BAPI_TE_MARA'.
    it_extensionin-valuepart1+0(18) = matdata-cltprt.
    it_extensionin-valuepart1+18(18) = 'NEW TEST'.
    APPEND it_extensionin.
    it_extensioninx-structure = 'BAPI_TE_MARAX'.
    it_extensioninx-valuepart1+0(18) = matdata-cltprt.
    it_extensioninx-valuepart1+18(1) = 'X'.
    APPEND it_extensioninx.
    Call BAPI
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
    EXPORTING
    headdata = is_headdata
    clientdata = is_clientdata
    clientdatax = is_clientdatax
    plantdata = is_plantdata
    plantdatax = is_plantdatax
    forecastparameters = is_forecastparameters
    forecastparametersx = is_forecastparametersx
    planningdata = is_planningdata
    planningdatax = is_planningdatax
    storagelocationdata = is_storagelocationdata
    storagelocationdatax = is_storagelocationdatax
    valuationdata = is_valuationdata
    valuationdatax = is_valuationdatax
    warehousenumberdata = is_warehousenumberdata
    warehousenumberdatax = is_warehousenumberdatax
    salesdata = is_salesdata
    salesdatax = is_salesdatax
    storagetypedata = is_storagetypedata
    storagetypedatax = is_storagetypedatax
    IMPORTING
    return = is_return
    TABLES
    materialdescription = it_materialdescription
    unitsofmeasure = it_unitsofmeasure
    unitsofmeasurex = it_unitsofmeasurex
    internationalartnos = it_internationalartnos
    materiallongtext = it_materiallongtext
    taxclassifications = it_taxclassifications
    returnmessages = it_returnmessages
    prtdata = it_prtdata
    prtdatax = it_prtdatax
    extensionin = it_extensionin
    extensioninx = it_extensioninx.

  • BAPI for PURCHASE ORDER with OPEN QUANTITY field

    Hi All,
    I wanted to use the BAPI_PO_GETDETAIL to get the Purchase Order details upon triggering from Warehouse management system,
    But the details required contains a field called OPEN QUANTITY...which is not used in this BAPI.
    I request to let me know if any BAPI exits for PO details having the structure for this field:Open Quantity.
    Am using SAP version 4.0B.
    If not exists please advise how to customize the existing BAPI to meet the requirement.
    thanks
    mahi

    Hi,
    Open quantity is a calculated field. I guess the BAPI gives the details of the delivery, so take the ordered qty and substract the delivered qty from that.
    Delivery data is EKET table.
    Regards,
    Ravi

  • BAPI for know  what has been spent of that budget.

    Greeting Gurus
    My question is in relation to the search for a BAPI to let me know in a general ledger account that has consumed your budget.
    I am currently using the BAPI: BAPI_COSTACTPLN_READPRIMCOST to know the amount allocated to a budget account. And I need to know what has been spent of that budget.
    Muchs thanks for your help

    Dear Pravender,
    Thank you for the tip.
    I'm in CMOD now.
    The only enhancement mentionned is RSAP0001 (customer function calls in the service API)
    Not sure what that means.
    In the mean time I have checked the where used list.
    The "include" program ZXRSAU01is mentionned and indeed it shows the fields SAKNR1 and SAKNR2...
    I guess I need to check that and make changes there if necessary.
    Alice

  • Help for a JCO rookie: How to feed import parameter into BAPI_USER_CREATE1

    Hi,
    I want to use JCO and BAPI_USER_CREATE1 to create users in SAP systems, following the steps in the JCO tutorial.
    I have difficulties with suppying the import parameters, for example "PASSWORD"
    function.getImportParameterList().setValue("XYZ","USERNAME");
    is working, but
    function.getImportParameterList().setValue("SECRET","PASSWORD");
    -->Cannot convert a value of 'GEHEIM' from type java.lang.String to STRUCTURE at field PASSWORD
    runs into an error.
    Can someone be so kind to provide a code snippet or a link to "how to deal with import structures in JCO"??
    Thanx in advance, Dieter

    Moin Dieter,
    the field password is of type Structure. Hence you will need to something like the following -
    JCO.Structure passStructure = function.getImportParameterList().getStructure("PASSWORD");
    passStructure.setValue("GEHEIM", "BAPIPWD");
    That should do the trick.
    T00th

  • Kindly tell me authorization object for MRP type

    Hi friends,
    Kind tell me what is the authorization object for MRP type in material master.
    Your help is considered more important.
    thanks in advance
    willaims

    Hi Willaim,
    There is no standard authorization object for MRP type.
    Regards,
    Alexander

  • Please provide logic for schedule lines and material document Quantity.

    Hi ABAPers,
    Please help in the following context.
    Is there any connecting or refrence field for which a particular schedule line item are considerd for the goods reciept of a particular material document.
    Also provide the logic.
    19                    34
    15
    14                   35
    11
    10
    If 19 15 14 11 10 are schedule lines, and 34 35 are two recived quantities,
    Then how can be the possible permutations and combinations logic to find out that, 34 = 19 + 15 and
           35 = 141110.
    Thanks in advance...

    Niles Raut wrote:
    Hello Gurus,
    >
    > This is intracompany STO scenario with delivery. There is one STO for quantity say 1000 pc created in 2008. Delivery and PGI done for 1000 qty in 2008.  Goods are received in receiving plant for qty 1000 in 2008. Now this delivery document is archieved and user has reversed the GR material document in 2010. Now this reversal material docuemnt has zero material qty becasue the delivery was archieved(which is the probable reson)
    >
    > When I want to cancel this reversal material document it gives error that "Qty and / or "delivery completed" ind. or final issue ind. are missing" which is logical since material document has zero quantity.
    >
    > Is there any sap notes or any other way to fix this?
    >
    > Please guide.
    >
    > Regards
    > Nilesh
    Where is actually the problem, if one only reversed 0 quantity?
    Why do you think you need to reverse this reversal again?
    why with year 2010?
    Dont you do anual inventories?  Such stock counts have corrected your stock anyway. if you start cancelling older movements then you create stock inconsistencies again.

  • BAPI for creation of material documents/movements

    Hi Everebody:
    I need some help regarding to bapis for the creation of mateial documents and/or movements. I have been trying to implement bapi BAPI_GOODSMVT_CREATE, but this bapi does not have (import) the posting time in document, which is very important for my porpuse.
    So, I would appretiate a lot any information anybody could give about any bapi I could use to create material documents or material movements but incluidng the posting time in document (field MKPF-OIB_BLTIME).
    Regards

    You can check MB_CREATE_GOODS_MOVEMENT which has mkpf as inporting parameter.

  • I need a bapi  for material management advance shipping notifications

    i need a bapi  for material management advance shipping notifications  for developing powls which includes below fields and some more fields.
    •     Inbound delivery number
    •     Due date (GR date)
    •     Vendor delivery number
    •     Material
    •     Name of material
    •     Quantity
    •     Vendor
    •     Name of vendor
    thanks and regards,
    jameer.p

    Hi Jameer,
    This is a hard one, my friend. I understand what you are trying to do.. Try BAPI_DELIVERYPROCESSING_EXEC. It is tricky though.
    Moreover you might want to use a FM to fill the IDOC data. something like IDOC_INPUT_**. this might be a better option.
    cheers,
    Hema.

  • Delivery document archived and material document has zero quantity

    Hello Gurus,
    This is intracompany STO scenario with delivery. There is one STO for quantity say 1000 pc created in 2008. Delivery and PGI done for 1000 qty in 2008.  Goods are received in receiving plant for qty 1000 in 2008. Now this delivery document is archieved and user has reversed the GR material document in 2010. Now this reversal material docuemnt has zero material qty becasue the delivery was archieved(which is the probable reson)
    When I want to cancel this reversal material document it gives error that "Qty and / or "delivery completed" ind. or final issue ind. are missing" which is logical since material document has zero quantity.
    Is there any sap notes or any other way to fix this?
    Please guide.
    Regards
    Nilesh

    Niles Raut wrote:
    Hello Gurus,
    >
    > This is intracompany STO scenario with delivery. There is one STO for quantity say 1000 pc created in 2008. Delivery and PGI done for 1000 qty in 2008.  Goods are received in receiving plant for qty 1000 in 2008. Now this delivery document is archieved and user has reversed the GR material document in 2010. Now this reversal material docuemnt has zero material qty becasue the delivery was archieved(which is the probable reson)
    >
    > When I want to cancel this reversal material document it gives error that "Qty and / or "delivery completed" ind. or final issue ind. are missing" which is logical since material document has zero quantity.
    >
    > Is there any sap notes or any other way to fix this?
    >
    > Please guide.
    >
    > Regards
    > Nilesh
    Where is actually the problem, if one only reversed 0 quantity?
    Why do you think you need to reverse this reversal again?
    why with year 2010?
    Dont you do anual inventories?  Such stock counts have corrected your stock anyway. if you start cancelling older movements then you create stock inconsistencies again.

Maybe you are looking for