Incorrect SLED when posting Material Document using BAPI_GOODSMVT_CREATE

Hi,
I have an upload program that performs goods movement and creates material document for a given PO using BAPI_GOODSMVT_CREATE.
the program passes the data from input file (through the parameter GOODSMVT_ITEM) including SLED, however, once the material document is posted, the SLED is still derived from batch input master and the BAPI does not use the one passed to it via GOODSMVT_ITEM.
The requirement is that, the SLED provided in the input file should be the SLED of the Matdoc created, and not the SLED maintained in the Batch input master.
Please advise.
thanks,
NC

sorry to say that, but you should learn about the application, you cannot make the field empty, it is SAP design that the valuation type goes to the batch field in case of split valuation active wihtout having batch managment active.
your wish is not possible with enhancements, and if , you would create inconsistencies and bigger problems in subsecuent processes.

Similar Messages

  • Validation when posting a document using T. Code FB50 or F-02

    Dear Experts
    Please let me know on how to validate when posting a Cross Company Transaction using T. Codes FB50 or F-02.  The requirement is to restrict Branches (each Branch is a Company Code in SAP) to post any Cross Company documents by selecting HO Company Code in Line Item, system has to stop the User by giving Error Message.
    We can't control this using User level Authorizations because, here the Authorization is provided to the Users to post the Transactions using T. Codes FB50 and F-02.
    To restrict this, I created a Validation as below:
    Prerequisite:
    BKPF-TCODE = 'FB50' OR BKPF-TCODE = 'F-02' AND
    BKPF-BUKRS = 'Br. Company Code' AND
    BSEG-BUKRS = 'HO Company Code'
    Check:
    FALSE
    Message:
    You Can't post Cross Company Transactions using T.Code FB50 or F-02
    And I activated the above Validation in OB28 for HO and Branch Company Codes.  But the Validation is not working properly.  Can anybody help me on how to proceed further in this regard please.

    Hi,
    I haven't tried to use a transaction code for Validation purpose. Instead, I have used document type as prerequisite and then check:
    BKPF-BUKRS = 'Br. Company Code' AND
    BSEG-BUKRS = 'HO Company Code'
    If the condition is met, it displays an error (per the message in validation) while completing the line item details on posting a document.
    Please let me know if that helps. If not, I can try to replicate your scenario and let you know if there is anything missing.
    Thanks,
    Ashish

  • Validation of a reference field when posting accounting document using FB50

    Hi all,
    We hada requirement to restrict the users from entering japanese caharaceters in the reference field of a accounting document. The validation for this was done using the transaction OB28. when the user posts the accounting document using transaction FB01 or changes the accounting document using transaction FB02, the validation provided in OB28 does work(it throws an error restricting the user from entering japanese characters if he has done so). But whenthe user pots the accounting document using the transaction FB50, the same error message comes as information message although the coding is for giving an error message.
    This however does not happen when the user logs on in English. In English logon the error mesage does appear.
    When the user logs on in Japanese the message comes as an information message but at the same time does not allow posting of the document.
    Debugging this revealed that the OSS note 197329 has been applied to the standard SAP program SAPMF05A.
    Any pointers to how this can be rectifiied would be appreciated.
    Thanks in advance.

    I think it would be best if you opened an OSS message on this.
    Rob

  • Unable to update XBLNR field on BKPF when posting a document using BAPI_ACC_GL_POSTING_POST

    Hi,
    I'm trying to post a clearing document using BAPI_ACC_GL_POSTING_POST, but after posting i'm unable to see the data in the reference field on header (BKPF-XBLNR). I'm passing the data in the header structure of the BAPI  (DOCUMENTHEADER-REF_DOC_NO).
    Thanks in advance.
    Regards,
    Sandeep

    We restricted our entry to five decimals and solved the issue.

  • Creation of transfer requirement when posting material document

    Hi
       I've copied standard movement 311 into 911 but i need another behaviour on this new mov. I use this mov in trx MB21 in order to create a reservation. When I post it in MIGO, I need to create a transfer requirement instead a Posting Change Notice. I think I could modify this on SPRO: Logistics Execution -> Warehouse Management -> Intefaces -> Stocks management -> Movement Classes
    but i don't know exactly what to do.
    Can anyone help me?
    Thanks and regards

    Hi,
    You can create TR for your mov.type 911 in the below mentioned settings.
    SPRO - LE - WM - Interfaces - Inven. Mgmt - Define Mov.types - LE-WM Interface to Inventory Management
    Set the indicator as X in the TR column & remove the tick in the posting change option.
    Hope its clear,
    Regards,

  • Unable to transfer post the document using BAPI "BAPI_GOODSMVT_CREATE"

    Hi Experts,
    I am unable to post the document using BAPI "BAPI_GOODSMVT_CREATE", getting error "_Sales order stock --- does not exist_"
    details are stated below:
    GM_CODE : 04, it is working fine for the scenario with same saleorder number and line item, but when i give same sale order number and different line item, then i am getting the above error.
    Example : Posting from Saleorder A with line item 100 to saleorder A with lineitem 100 its working fine, but when we are posting
                    from Saleorder A with lineitem 100 to saleorder A with line item 200 it is not working.
    Also When I trying to do with the transaction MB1B manually, it is working fine. kindly suggest me.
    Needed Urgently....
    Appreciate for you early response.
    Regards,
    Sathya.
    Edited by: Sathyanarayana Raghavendra on May 6, 2010 1:00 PM

    Hi,
    Hi Did you call Function BAPI_TRANSACTION_COMMIT' after calling the BAPI.    ?
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = c_x.
    Regards,
    Jovito.

  • Post Goods issue using bapi_goodsmvt_create

    hi,
    Iam trying to do post goods issue using bapi_goodsmvt_create. please let me know what are the mandatory fields to be passed?

    hi,
    *& Report  ZRPT_SUB_KO01GOODSMOVEMENT
    REPORT  ZRPT_SUB_KO01GOODSMOVEMENT.
    PARAMETERS : P_BAG(17)  TYPE C,
                 P_ZZORG LIKE zaUFK-ZZORG,
                 P_MATNR LIKE MARA-MATNR,
                 P_WERKS LIKE AUFK-WERKS,
                 P_WERK LIKE AFPO-PWERK,
                 P_DATE LIKE MKPF-BUDAT,
                 P_LGORT LIKE GOITEM-LGOBE.
    DATA : BDC_DATA TYPE STANDARD TABLE OF BDCDATA. "internla table for bdc data
      DATA : WA_BDC_DATA TYPE BDCDATA .                "work area for bdc data
      DATA : T_XMSEG TYPE   MSEG.
      DATA : T_XMKPF TYPE MKPF.
      DATA : V_BAGS1(17) TYPE C.
    DATA : BEGIN OF WA_MB1B,
           ZZGCODE TYPE ZMIGO-ZZGCODE,
           ZZGBAGS TYPE ZMIGO-ZZGBAGS,
           WERKS TYPE AUFK-WERKS,
           LGORT TYPE VBRP-LGORT,
           ZZORG TYPE zAUFK-ZZORG,
           END OF WA_MB1B.
    DATA : V_MATERIAL TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    data : v_date(10) type c.
    DATA : T_GOODSMVT_HEADER TYPE BAPI2017_GM_HEAD_01,
           T_GOODSMVT_CODE TYPE BAPI2017_GM_CODE,
           T_GOODSMVT_ITEM TYPE STANDARD TABLE OF BAPI2017_GM_ITEM_CREATE,
           T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    DATA : WA_GOODSMVT_ITEM TYPE BAPI2017_GM_ITEM_CREATE.
    DATA : BEGIN OF S_MARA,
           MEINS LIKE MARA-MEINS,
           END OF S_MARA.
    DATA : MATERIALDOCUMENT TYPE BAPI2017_GM_HEAD_RET-MAT_DOC.
    *FORM GOODSMOVEMENT TABLES T_RETURN
                             USING WA_MB1B LIKE WA_MB1B.
    SELECT SINGLE  MEINS
                   FROM MARA
                   INTO S_MARA
                   WHERE MATNR = P_MATNR.
       CONCATENATE p_date6(2) p_date4(2) p_date+0(4) INTO V_DATE SEPARATED BY '.'.
        T_GOODSMVT_HEADER-PSTNG_DATE = P_DATE.
        T_GOODSMVT_HEADER-DOC_DATE = P_DATE.
        T_GOODSMVT_CODE-GM_CODE = '04'.
        WA_GOODSMVT_ITEM-MATERIAL =      P_MATNR.                    "'000000000000001556'.
        WA_GOODSMVT_ITEM-PLANT  =        P_WERK.                     " '1000'.
        WA_GOODSMVT_ITEM-STGE_LOC =      P_LGORT.                    " '0001'.
        WA_GOODSMVT_ITEM-MOVE_TYPE =     'Z42'.
        WA_GOODSMVT_ITEM-VENDOR =         P_ZZORG.                   "'0000100224'.
        WA_GOODSMVT_ITEM-ENTRY_QNT =      P_BAG.                   " '1'.
        WA_GOODSMVT_ITEM-ENTRY_UOM =     S_MARA-MEINS.
        WA_GOODSMVT_ITEM-ENTRY_UOM_ISO = S_MARA-MEINS.
        WA_GOODSMVT_ITEM-MOVE_PLANT = P_WERKS.
        APPEND WA_GOODSMVT_ITEM TO T_GOODSMVT_ITEM.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
    EXPORTING
          GOODSMVT_HEADER          = T_GOODSMVT_HEADER
          GOODSMVT_CODE            = T_GOODSMVT_CODE
    IMPORTING
        MATERIALDOCUMENT           = V_MATERIAL
    TABLES
          GOODSMVT_ITEM            = T_GOODSMVT_ITEM
    RETURN                        = T_RETURN.
    BREAK shailajaa.
               EXPORT t_return  to MEMORY ID '123'.
               EXPORT V_MATERIAL TO MEMORY ID 'MAT'.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
         EXPORTING
           WAIT          = ' '.
    *ENDFORM.

  • Posting period 011 2013 is not open while posting the document using F-02 getting the error

    Hi SAP Captains,
    Pls help me here.
    While posting the document using T-code F-02 getting the error "Posting period 011 2013 is not open.
    Please help me how to do, can you provide step by step.
    Rgds..Suresh

    Hi Suresh,
    You can search google and will get number of posts on this. This will lead to duplication of similar posts on forum.
    The message says "FI posting period is closed for 11th period of 2013". In which period you are trying to post the transaction?
    If it is past, open the FI posting periods in OB52.
    BR, Srinivas Salpala

  • Post the document using f-65?

    Hi Experts,
    I know the FB01 tcode  used for Posting and F-65 used for document parking, my query is there any possible to "POST"  the document using F-65?
    Thanks
    NK

    why do you want to POST with f-65 . where there is Fb01 for post But in FB01 you can Pak the docuemnt .
    Go to docuemnt menu and click on SAVE  as completed "
    Many Thanks

  • Posting Intercompany documents using program RFBIBL00

    Hi,
    I want to know if we can post intercompany documents using program RFBIBL00(Direct Input Method).
    If this is possible, please let me know how can this be achieved as I am getting an error "Cross-company code postings not defined".
    Thanks
    Harveen.

    HI
    You need to setup the relationships between the company codes. Do this via
    OBYA transaction.
    Hope this help.
    Regards
    kishore

  • How to create Material Document using MI10 transaction

    Hi,
    I am posting a differnce of Quantity using the transaction MI10. My requirement is to make the inventory 0 for all the materials whose inventory is negative. This should create a physical inventory document and a Material document with movement type 702.
    However when I am trying to do so I am able to get the Physical Inventory document but not the Material document.
    Please let me know how can I create the Material document simultaneously.
    Also please let me know if there is a BAPI which does the work of MI10 transaction.
    Thanks,
    Abhishek

    hi,
    You shd check the PI posting document for the reference to see the qty diff. which is posted....
    Internally system will auto call the 702 and make the settlements and will update book inventory..
    Regards
    Priyanka.P

  • Problem while Posting a Document Using BAPI_ACC_DOCUMENT_POST

    Hi All,
    When i try to post my General Ledger Document using BAPI_ACC_DOCUMENT_POST, i face a situation due to the exchange rate. The field EXCH_RATE in CURRENCYAMOUNT table accepts only 5 decimals. But according to my scenario it should accept more than 5 decimals. Is there any BAPI or other way to solve this issue.
    Thanks & Regards,
    Venkatesh. R

    We restricted our entry to five decimals and solved the issue.

  • Problem in Posting a document using BAPI_ACC_DOCUMENT_POST

    Hi,,
    I am using the function module "BAPI_ACC_DOCUMENT_POST" to post a vendor Invoice (KR). i think the t-code to post this is FV60.when i post the document, the document number is getting generated but amount is missing  in t-code fbv3 but bseg table is getting updated properly. Can any one help the actual input to be given to create a document and tax
    Regards

    I have a suggestion:
    Try to post this kind of document (KR) with transaction code FB01. If you can see the document correctly with FBV3 transaction, then you can use BAPI you mention.
    The following function modules may be useful for calculating taxes:
    CALCULATE_TAX_FROM_NET_AMOUNT
    CALCULATE_TAX_FROM_GROSSAMOUNT
    Regards.
    Rafael Rojas.

  • Posting a document using FM PRELIMINARY_POSTING_FB01

    Hello Experts,
    I know we can FM PRELIMINARY_POSTING_FB01 to PARK a Document. But I think we can also use this FM to Post the Document. The reason I want to use this FM, not other BAPI's, is I have all the structures (BSEG, BKPF, BSET etc) that I needed to populate. So I passed I_XCMPL = 'X'. However, it still Parked the Document not Posted.
    Can anybody please let me know what I missed?
    Thanks a lot. Sadly this FM does not have any documentation.
    Here's my code:
    w_bkpf-bukrs = p_bukrs.
       w_bkpf-gjahr = p_gjahr.
       w_bkpf-blart = p_blart.
       w_bkpf-bldat = p_dat.
       w_bkpf-budat = p_dat.
       w_bkpf-monat = '01'.
       w_bkpf-cpudt = p_dat.
       w_bkpf-cputm = sy-uzeit.
       w_bkpf-wwert = p_dat.
       w_bkpf-usnam = sy-uname.
       w_bkpf-tcode = 'FB01'.
       w_bkpf-xblnr = 'ZTEST1'.
       w_bkpf-waers = p_waers.
       w_bkpf-glvor = 'RFBV'.
       w_bkpf-ausbk = p_bukrs.
       w_bkpf-bktxt = 'TEST'.
      append w_bkpf to t_bkpf.
      w_bseg-bukrs = p_bukrs.
      w_bseg-gjahr = '2010'.
      w_bseg-bschl = '40'.
      w_bseg-koart = 'S'.
      w_bseg-shkzg = 'S'.
      w_bseg-dmbtr = '2000.00'.
      w_bseg-wrbtr = '2000.00'.
      w_bseg-pswsl = p_waers.
      w_bseg-altkt = '0001298232'.
      w_bseg-vorgn = 'RFBU'.
      w_bseg-kokrs = 'ABC'.
      w_bseg-xkres = 'X'.
      w_bseg-hkont = '0001298232'.
      w_bseg-saknr = '0001298232'.
      w_bseg-lifnr = '0000100000'.
      w_bseg-zterm = 'CN30'.
      w_bseg-projk = '00001111'.
      append w_bseg to t_bseg.
       CALL FUNCTION 'PRELIMINARY_POSTING_FB01'
       EXPORTING
    *     TEXT_UPDATE            = ' '
    *     TEXT_ITEM_UPDATE       = ' '
    *     I_UF05A                =
          I_XCMPL                = 'X'
    *     FS006_FB01             =
          I_TCODE                = 'FB01'
    *     I_PARGB                =
    *     I_TCODE_INT            =
    *   IMPORTING
    *     XEPBBP                 =
        TABLES
          T_BKPF                 = t_bkpf
          T_BSEG                 = t_bseg
          T_BSEC                 = t_bsec
          T_BSET                 = t_bset
          T_BSEZ                 = t_bsez
    *     T_BKORM                =
    *     T_THEAD                =
    *     T_SPLTTAB              =
    *     T_SPLTWT               =
        EXCEPTIONS
         ERROR_MESSAGE           = 1.

    Hi,
    Thanks for the response. I wanted to check the FM which gets triggered in the BTE. However I could find one in FIBF.
    Can you please let me know if you have any documentation on FM PRELIMINARY_POSTING_FB01? That would help me understanding its functionality.
    Thanks a lot.
    Should I use "IN UPDATE TASK" when calling this FM? Thanks.
    Edited by: lope jie on Apr 28, 2010 8:10 PM

  • Error Rounding Difference too high when reset cleared document using FBRA

    My Client has posted cleared document with T_Code F-51. This cleared document has cleared 6040 open items.
    And now, they want to reset and reverse that cleared document.
    We found error "Rounding difference too high" when we are reset cleared document using FBRA.
    Kindly need your advice.
    Many thanks in advance.
    Regards,

    Hello,
    Please let me know the ERROR number.
    Regards,
    Ravi

Maybe you are looking for

  • Delivery Split for PO

    I want to split delivery creation for 'NL' type of delivery for STPO i.e. 'UB' type. i.e. if a PO has 2 materials with different material types ( e.g FERT & HAWA ), then 2 different deliveries have to be created in this case automatically. How can th

  • Bluetooth keyboard no longer discoverable after 10.4.4

    Hi-- My Apple Wireless Keyboard had been working fine with my PowerBook. I've had Bluetooth 1.5 Update for Mac OS X Bluetooth Firmware Updater 1.2 installed for awhile and I've installed new batteries within the last several weeks. However, roughly t

  • Displaying Protected Movies

    I downloaded an HD episode of Mad Men that didn't get DVRd. The download was on our MacBook Pro (maybe 1st gen? I wish Apple would give products unique &#$%ing names!). It could not play it (grey content, no audio) and gave no warning/error message a

  • PREMIUM MESSAGES

    Verizon knows darn well there is tons of companies out there scamming people with these premium charges ..... yet they offer no protection at all to the loyal customers. I have 5 lines and have been a loyal customer for years (formally alltell). One

  • WSI Validation in Jdeveloper

    I tried to validate a wsdl against the wsi standard like shown in: http://www.oracle.com/technology/products/jdev/howtos/1013/ws-i/wsi_howto.html But my jdeveloper (10.1.3.1) prompts: C:\Programme\OracleJdevSOA10.1.3Prod\jdev\mywork\wsia.bat -config