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.

Similar Messages

  • Posting the Document using BAPI

    Hi All,
             We have posted document manually using 'FB01' tranasaction.But we are unable to post document through 'BAPI_ACC_DOCUMENT_POST'.we are getting errors like ''FI/CO interface: Line item entered several times''.can anybody send me the sample code for posting document.
    Thank You,
    Anupama.

    Hi,
    In the tables passed to the BAPI : accountgl, accountreceivable, accounttax and so on - you need to use a unique item number (position number, field itemno_acc) for each item.
    There is a standard SAP report with instruction how to use that BAPI:  porgram ACC_BAPI_TEST_DOCUMENT .
    good luck

  • 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

  • F-22, Need to upload the document using BAPI

    we have requirement to use BAPI for uploading document to f-22,
    For the BAPI when we input data all the data are correctly posted except posting keys,
    Our requirement is to use the customized posting for crediting customer and standard posting key for debiting GL account,
    We have input the required posting key in BAPI but still its not picking the posting key, its taking the standard posting key,
    Document type used is DC and DB,
    so is there any relation between document type and posting key, any idea from where BAPI is picking Posting key?

    Hello,
    it was originally not intended to use the BAPI to post
    payment documnents. For simplicity the posting keys are not
    at the BAPI's interface, instead they are defaulted with
    the standard posting keys depending on account type and debit/credit
    indicator.
    Please see note 487722 which explains how to pass addditional data
    to the BAPI in parameter EXTENSION1. You can implement the
    Business Transaction Event (BTE) RWBAPI01 to populate the posting
    key (t_accit-bschl) from EXTENSION1 parameter.
    I hope this helps!
    BR,
    Raquel

  • Issue in posting a accounting document using BAPI BAPI_ACC_DOCUMENT_POST

    Hi All,
    I 'm able to post a document using BAPI ' BAPI_ACC_DOCUMENT_POST ' but the problem i face is the header text is not getting updated for the document that is getting posted. Even though i'm populating the header text in the parameters i'm passing to the BAPI.
    Any pointers to this would be highly appreciated.
    Regards,
    Chaitanya

    Hi,
    put a  break in subroutine FORM fill_acchd
    and execute the bapi.
    Here you have:
      CLEAR gs_acchd.
      MOVE-CORRESPONDING gs_aw TO gs_acchd.
      gs_acchd-usnam = gs_bapi_acchd-username.
      gs_acchd-awsys = gs_bapi_acchd-obj_sys.
      gs_acchd-bktxt = gs_bapi_acchd-header_txt."---->¡¡¡CHECK THIS!!!
      gs_acchd-glvor = gs_bapi_acchd-bus_act.
      gs_acchd-tcode = sy-tcode.
      gs_acchd-acc_principle = gs_bapi_acchd-acc_principle.
    Check if there is something wrong there.
    Best regards

  • How to post invoice parked using  BAPI-  BAPI_INCOMINGINVOICE_CREATE

    Hi all,
    Can anybody help me with the following scenario:
    I am parking Invoice document using BAPI:  <b>BAPI_INCOMINGINVOICE_PARK</b>. It gives me a document no. which I can see in frontend system also by committing the BAPI.
    But when I try to post the same using BAPI: <b>BAPI_INCOMINGINVOICE_CREATE</b> , It gives me a different document no.
    Means it is not posting the document which has been parked earlier but it is creating totally a new document. Can anybody  tell me using BAPIs how to post the same document that I had parked using  BAPI:  <b>BAPI_INCOMINGINVOICE_PARK</b>??
    Thanks
    Saurabh

    Hi Shraman,
    For a requirement for Intercompany GL posting, use BAPI_ACC_DOCUMENT_POST for standard posting with some advanced parameters
    In Header of the BAPI, pass the hardcoded values like
    DOCUMENTHEADER
           OBJ_TYPE            =            FKKSU
           OBJ_KEY             =          $
           OBJ_SYS              =          System name 
           BUS_ACT             =           RFBU
    Other parameters you can pass in Header is:
    USERNAME
    HEADER_TXT
    COMP_CODE
    DOC_DATE
    PSTNG_DATE
    TRANS_DATE
    FISC_YEAR
    FIS_PERIOD
    DOC_TYPE
    REF_DOC_NO
    If you are posting a document in cross-companies 1000 & 1001, you need to pass cost-center with the line item. That is the mandatory field.
    Thanks,
    Guru

  • Goods issue using bapi  BAPI_GOODSMVT_CREATE getting error E M7

    HI  consultants,
    While  posting goods issue using bapi BAPI_GOODSMVT_CREATE . Running the batch job(zprogram) to post the goods issue . The goods issue is been posted by passing  goods receipt data's.
    while processing 3 goods receipt , 2 works fine one goods receipt getting  E M 7 300 NO ITEMS ARE TRANSFERED error.
    when i  processing one by one all the 3 goods receipt is working fine and process sucessfully. While processing in bulk ,i am getting this issue.
    If anybody faces this same problem or knows the solution .Please post the answer.
    The way i am passing the parameter to bapi given bellow.
        WA_GOODSMVT_CODE-GM_CODE = C_03.
    *--populate header data
        WA_GOODSMVT_HEADER-DOC_DATE   = WA_MKPF-BLDAT.
        WA_GOODSMVT_HEADER-PSTNG_DATE = WA_MKPF-BUDAT.
    *--populate item data      
    *-- call the bapi for posting goods issue
                 IT_GOODSMVT_ITEM-NETWORK     = WA_RESBP-AUFNR.
                IT_GOODSMVT_ITEM-RESERV_NO   = WA_RESBP-RSNUM.
                IT_GOODSMVT_ITEM-RES_ITEM    = WA_RESBP-RSPOS.
                IT_GOODSMVT_ITEM-ACTIVITY    = WA_RESBP-VORNR.
                IT_GOODSMVT_ITEM-MOVE_TYPE   = C_281.
                IT_GOODSMVT_ITEM-ENTRY_QNT   = WA_RESBP-NET.
    *--get the item details
                  IT_GOODSMVT_ITEM-MATERIAL   = WA_MSEG-MATNR.
                  IT_GOODSMVT_ITEM-PLANT      = WA_MSEG-WERKS.
                  IT_GOODSMVT_ITEM-STGE_LOC   = WA_MSEG-LGORT.
                  IT_GOODSMVT_ITEM-ENTRY_UOM  = WA_MSEG-ERFME.
                  CALL FUNCTION 'CONVERSION_EXIT_ABPSP_OUTPUT'
                    EXPORTING
                      INPUT  = WA_MSEG-PS_PSP_PNR
                    IMPORTING
                      OUTPUT = WA_PSPHI_TEMP.
                  IT_GOODSMVT_ITEM-WBS_ELEM   = WA_PSPHI_TEMP.
                  APPEND IT_GOODSMVT_ITEM.  
                CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
                  EXPORTING
                    GOODSMVT_HEADER  = WA_GOODSMVT_HEADER
                    GOODSMVT_CODE    = WA_GOODSMVT_CODE
                  IMPORTING
                    MATERIALDOCUMENT = WA_MATERIALDOCUMENT
                  TABLES
                    GOODSMVT_ITEM    = IT_GOODSMVT_ITEM
                    RETURN           = IT_RETURN.
    With Regards,
    Ambrose Mohandoss.

    Problem solved.

  • The Document Information Panel was unable to load. The document will continue to open ?

    I am using Sharepoint 2010; DIP in microsoft word all the while is working fine, not sure why suddenly it came out the following error when save word doc  into sharepoint.
    ERROR MESSAGE
    ===========
    "The Document Information Panel was unable to load. The document will continue to open.
    The form contains schema validation errors.
    Content for element 'documentManagement' is incomplete according to the DTD/Schema. "
    How to troubleshoot? Recently I added lookup column and a workflow into the library, but I did the same thing in another library which never appear to have any issue on it.

    The lookup column is creating the problem , you can find powerscript solution to fix this issue , please check this -
    Fix through Powershell
    http://blogs.msdn.com/b/tehnoonr/archive/2012/05/17/sharepoint-2010-document-information-panel-fails-to-load-when-office-documents-are-opened-in-a-library-that-contains-lookup-columns.aspx
    Fix through Code
    https://social.msdn.microsoft.com/Forums/office/en-US/2a4d6d10-d1d5-4d6a-a22b-62dfb6b60685/lookup-field-creation-and-document-information-panel?forum=sharepointdevelopmentlegacy
    or try this -
    https://social.technet.microsoft.com/Forums/office/en-US/2552fbc8-da24-4d2b-84f6-d39c4d58b137/the-document-information-panel-was-unable-to-load-the-document-will-continue-to-open-for-more?forum=sharepointgeneralprevious
    1. Open this location- C:\Program
    Files\Microsoft Web Designer Tools\Office12\1033\IPEDINTL.DLL
    2. copy IPEDINTL.DLL
    3. paste it here- C:\Program Files\Microsoft
    Office\Office12\1033\IPEDINTL.DLL
    4. Close all the applications that are presently
    open as well as all the browsers
    5. Open the sharepoint site in a new browser
    and check the results !!
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • 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

  • Posting Subsequent Credit Using BAPI: BAPI_INCOMINGINVOICE_CREATE

    Hi,
    I need to post subsequent credits using BAPI: BAPI_INCOMINGINVOICE_CREATE.
    In MIRO transaction we get option to select transaction (Invoice/Credit Memo/Subsequent Debit/Subsequent Credit).
    But in case of BAPI I am not able to find such field. At headerdata there is one field INVOIC_IND to determine whether the system posts a credit memo or an invoice.
    How can we post Subsequent Credit using this BAPI?
    Regards,
    Umesh

    Hi,
    For the BAPI below is the structure mapping.
    <b>BAPI Structurename Field Value Value Description
    Headerdata</b>
    DOC_DATE 02/08/2005
    INVOICE_IND X Post Invoice
    PSTNG_DATE 02/08/2005
    COMP_CODE 5010 Hospira Inc.
    CURRENCY/ CURRENCY_ISO USD United States Dollar
    GROSS_AMOUNT 100.0000
    DOC_TYPE RE PO Invoice
    REF_DOC_NO 1 Billing document no
    EXCH_RATE 1.00000
    CALC_TAX_IND X
    HEADER_TXT header text
    <b>Item Data</b>
    INVOICE_DOC_ITEM 000001 Invoice Document no
    PO_NUMBER 4500125768 PO No
    PO_ITEM 1 PO item no
    ITEM_AMOUNT 100.0000
    QUANTITY 10.000
    PO_UNIT EA Each
    REF_DOC 5000000007 Goods Receipt No
    REF_DOC_YEAR 2005 GR year
    REF_DOC_IT 0001 Goods Receipt item no
    TAX_CODE I0 AP, not relevant to tax
    ITEM_TEXT Text
    <b>Note:</b>For standard purchase order(Po's start with 45*****) it wont allow you to create without Goods Receipt. U can create an invoice without a Good receipt for only intercompany purchase orders.
    If this is useful, pls reward with points.
    Regards,
    savitha

  • 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

  • Create Excise invoice(J1IIN) document while creating billing document using bapi BAPI_BILLINGDOC_CREATEMULTIPLE

    Dear Experts,
    My scenario is:
    We have batch split scenario, where the parent line item of billing document has 0 quantity and its subsequent item (item with batch number) holds actual quantity data.
    When we create billing document using VF01 against delivery document, system creates billing document along with excise invoice document (J1IIN Document). And in excise document contain same number of line items that of billing document. Please see the below attachment: 
    Biiling document screen shot:
    While creating billing document, the J1IIN Document created automatically. Below is the screen-shot for the same.
    Now the issue is:
    When we create billing document using BAPI: BAPI_BILLINGDOC_CREATEMULTIPLE system creating only billing document and not creating excise invoice document.
    When we create excise document manually using J1IIN the zero quantity line items are excluded in excise invoice document.
    Please see the below screen-shot for the same; The z quantity line items are missing.
    We want excise document to be created while creating billing document using BAPI BAPI_BILLINGDOC_CREATEMULTIPLE. Or is there any other BAPI for the same purpose.
    Customization is also maintained for creating excise invoice document automatically.
    Regards,
    Rajesh Sadula.

    HI
      Pricing will be carried basing on the pricing
    procedure.
    Case1: Prices will be carried out automatically if
    necessary condition records are maintained for the
    condition type.
      For this you can go to Sales Order-> Item Conditions
    In the screen you can click on command button Analysis,
    which gives you the list of condition types associated
    to the pricing procedure. By clicking on the condition
    type you can know the action that has taken place.
    Case2: Manually forcing prices for Items.
      To do this, you have to populate ORDER_CONDITIONS_IN &
    ORDER_CONDITIONS_INX. Also note to identify the item
    numbers, you manually pass the item number for each item
    in the sales order, use the same item number for
    populating conditions.
      Parameters required:
    ORDER_CONDITIONS_IN:
      ITM_NUMBER, COND_TYPE, COND_VALUE, CURRENCY
    ORDER_CONDITIONS_INX:
      ITM_NUMBER, COND_TYPE, UPDATEFLAG, COND_VALUE,CURRENCY.
       Hope the above info helps you. Do revert back if you
    need more info.
    Kind Regards
    Eswar

  • Not able to post the document

    Hi All,
    I have a one doubt i am not able to post the document. After the withholding tax setting i am not able to post the document. I am getting the error Account determination not defined for translation SKT in chart of account. Please help me.
    Thanks in advance.
    Thanks
    Srikanth Gajulla

    Dear Srikanth,
    Error occurred due to payment difference is loss and that should be adjusted with cash discount loss account and assigned the GL account which should be posted here.
    use the T-Code - OBXI and the GL account. check the screen shot.
    Regards,
    PK.

Maybe you are looking for

  • Failed to Initialize the application 'soa-infra'

    Hi, During installation of SOA 11g, i am facing problem in starting the managed server. Iam using the following components with versions: *1. JDeveloper Studio Edition Version 11.1.1.2.0 (Base install)* *2. Weblogic Server 10.3.2.0* *3. SOA Suite 11.

  • Can't Send Email to a Group

    Trying to send an email to groups I created in address book.  Opening a new email and typing group name brings up the group but it doesn't populate with emails.  I right clicked on the group to create an email and again, created the email but no emai

  • I just upgraded from PSE8 to 11 and can't find my catalog to convert.

    I just upgraded from PSE 8 to 11 and can't find my catalog to convert.  I watched the Manage My Catalog  instruction video, but my old catalog doesn't show in the box.  When I browse the DATA1 and DATA11 files in my PSE 8 folder the dialog box does n

  • Problem with Reversed document with IDOC interface

    I have a problem when I create Idoc which will reverse a document. I use ACC_DOCUMENT_REVERSE, in Idoc is filled like this - OBJ_TYPE ( BKPFF ) OBJ_KEY( reverse document number + company code + year) OBJ_SYS ( system id ) OBJ_KEY_R ( obj_key of docum

  • DV4170US - new battery not charging

    My first battery had progressively shorter battery life, so I replaced it with an after-market battery.  That worked for over a year.  Then, it wouldn't charge.  I was able to use the laptop with the charger attached, but the battery would not charge