Create reversal document with BAPI: BAPI_ACC_DOCUMENT_POST.

Hi Guys,
I am Create reversal document with BAPI: BAPI_ACC_DOCUMENT_POST.First I am post financial document with BAPI BAPI_ACC_DOCUMENT_POST and Same Document. i am Reversal  with same BAPI 'BAPI_ACC_DOCUMENT_POST'.
New reversal docment is created. but posting key are not changingin reversal docment.whatever posting key created in posting same posting key are created while reversal also.Please help me

check
Mapping of POSTING KEY in BAPI_ACC_DOCUMENT_POST

Similar Messages

  • 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

  • CREATE SD document with characteristics - BAPICUVAL / E1CUVAL problem

    Hello there,
    I am trying to create SD document with material characteristic. I can create single value characteristic, but when I am trying to post interval characteristic, just lower interval is saved and upper one is ignored.
    I use BAPI_SALESORDER_CREATEFROMDAT2. For example:
    DATA: tab_order_value TYPE TABLE OF bapicuval,
          wa_order_value LIKE LINE OF tab_order_value.
    wa_order_value-config_id = '000001'.
    wa_order_value-inst_id = '00000001'.
    wa_order_value-charc = 'OUTER_DIAMETER'.
    wa_order_value-value = '510'.
    wa_order_value-valcode = '3'.
    wa_order_value-value_to = '2100'.
    wa_order_value-author = '8'.
    INSERT wa_order_value INTO TABLE tab_order_value.
    Characteristic is not set properly (510-2100mm), just 510mm is set. How should I call it properly? Should I fill also some another tables? Is there some documentation? Can be there some bug in SAP standard?
    Any response is highly appricieted.

    Hi Maggie,
    my values are definitely ok. When you post 100 its same as 100,00 :).
    When I want to post just one value, for example 100 it works well. When you want to post interval values, for example 100 u2013 500, its just post the first one.
    I debug standard code behind this and its look like, that there is no way to write interval and this "bug" is standard feature - the upper level of interval is cut by ABAP code.
    In past I also checked how is system filling BAPICUVAL structure. When I fill this structure with same values and run it in my BAPI its doesnu2019t work, because its processed like iDoc.
    So the conclusion is, that it is not possible to write intervals right now from external source, just from the inside of SAP standard transactions.
    So, I decided to close this thread.

  • 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 document which will reverse )
    PSTNG_DATE
    COMP_CODE
    REASON_REV
    I formed OBJ_KEY with one select from table bkpf, and get the last number of documents reversed with Idoc interface. The interface creates Idoc reverse document with number 929xxxxxxx. With fb08 - documents created are 92xxxxxxxx.
    The problem is when use transaction fs10n, fill customer account number, and the sums are not right. The documents which was reversed with Idoc did not entered in G/L Account Line Item.
    But if I start transaction fbl5n - customer line item, the documents reversed by Idoc is there, and the total sum is right.
    How can I resolve this problem?
    Greetings,
    Lazar Hristov

    Hi,
    I hope you have reversed the posting.Have you cancelled the downpayment invoice.
    Please cancel the first downpayment invoice and post the amount for the second downpayment.
    Now try to create the final invoice.
    Regards,
    Krishna.

  • How to create the document with originals and checkin that document

    I am using this 2 bapi for creating DMS ,
    BAPI_DOCUMENT_CREATE2
    BAPI_TRANSACTION_COMMIT
    BAPI_DOCUMENT_CHECKIN2
    BAPI_TRANSACTION_COMMIT
    at last we want to c in DRAO table the created doc no should be updated here.
    But it not updating.how can i update in the table..
    Please tell via code..

    How do you call BAPI_DOCUMENT_CREATE2?
    I just tried with the example given in the documentation and with a little adjustment I created a document with an original which appears in the DMS_DOC_FILES table.
      DATA: ls_doc    LIKE bapi_doc_draw2,
            ls_return LIKE bapiret2.
      DATA: lf_doctype    LIKE bapi_doc_draw2-documenttype,
            lf_docnumber  LIKE bapi_doc_draw2-documentnumber,
            lf_docpart    LIKE bapi_doc_draw2-documentpart,
            lf_docversion LIKE bapi_doc_draw2-documentversion.
      DATA: lt_files LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE,
            lt_drat  LIKE bapi_doc_drat OCCURS 0 WITH HEADER LINE.
      ls_doc-documenttype    = 'Z01'.
      ls_doc-documentversion = '01'.
      ls_doc-documentpart    = '000'.
      ls_doc-statusextern   = 'DR'.
      ls_doc-laboratory     = '001'.
      REFRESH lt_files.
      CLEAR lt_files.
      lt_files-docfile      = 'c:\BP\test.docx'.
      APPEND lt_files.
      CLEAR lt_drat.
      REFRESH lt_drat.
      lt_drat-language    = 'EN'.
      lt_drat-description = 'Info Rec Description'.
      APPEND lt_drat.
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
            EXPORTING: documentdata         = ls_doc
            IMPORTING: documenttype         = lf_doctype
                       documentnumber       = lf_docnumber
                       documentpart         = lf_docpart
                       documentversion      = lf_docversion
                       return               = ls_return
           TABLES: documentdescriptions = lt_drat
                   documentfiles        = lt_files.
      IF ls_return-type CA 'EA'.
        ROLLBACK WORK.
        MESSAGE ID '26' TYPE 'I' NUMBER '000'
                WITH ls_return-message.
      ELSE.
        COMMIT WORK.
      ENDIF.
    Best Regards,
    Martin

  • How to create shipment document with out inbound delivery document

    Dear Friends
    How to create shipment document with out outbound/inbound delivery document.
    In my client scenario, there is no inbound delivery for normal purchases.
    Just there are raising the PO to vendor, then they are doing MIGO for goods receipt.
    Can we do shipment creation with reference to PO?
    If it is possible, how it will be?
    Please let it solve
    With regards
    Lakshmikanth

    Dear Sameer,
    Please go to transaction VT01N here you enter Transportation planning point and shipment type then press enter.
    Now system will take you to the shipment document creation screen here you click on Select deliveries or press F6 now system will take you to the select outbound deliveries screen in this screen you enter selection data then execute, now deliveries will get assigned to that shipment.
    After assigning the deliveries enter the remaining data then complete the shipment finally save the shipment document.
    For more information please go through this SAP help link
    Note:- Shipment process need to be carry out for the deliveries before PGI.
    http://help.sap.com/saphelp_47x200/helpdata/en/f5/04898047bd11d2bf750000e8a7386f/frameset.htm
    I hope this will help you,
    Regards,
    Murali.

  • Intercompany stock transfer: IV billing documents creates FI document with

    Hi,
    Intercompany stock transfer: IV billing documents creates FI document with wrong vendor.
    How can I make sure that the correct vendor is posted in the selling company code?
    Best regards,
    Eric.

    Hi Jürgen,
    I also tried this option but then the following error appeared:
    "Message no. F5598: Posting keys for account determination for transaction BUV do not exist".
    Some point is forcing the PGI to ask for BUV operation (Tx. OBYA).
    Thank you for your contribution.

  • I would like to create a document with imbedded video, to email, and airdrop to an iPad mini. What program should I use?

    I would like to create a document with imbedded video, to email, and airdrop to an iPad mini. What program should I use?

    Thank you for using the Apple Support Communities
    I would suggest using Apple's Pages which allows support for imbedding videos from the device's camera roll. Pages also allows for sharing via email, Air Drop, and Messages.

  • 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

  • Create custom document with wrong size

    Hi,
    I have a problem (on Sun Solaris 5.8) when I create custom document with more than 10MB size.
    I've created an agent which detects the events on a custom data type
    MYDOCUMENT (extension .mydoc).
    When I put a new document test1.mydoc (size of 10MB for example), my agent detects the new document, creates a copy, sets the class object to
    MYDOCUMENT , removes the original document and puts the copy into the same folder.
    But sometimes, the copy created has a wrong size (less then 10MB).
    How can I configure the nfs server to be sure that the agent waits for the complete size of the added document.
    I need HELP !!!!
    Thanks

    Hi Pavithra,
                    yeah you can create your custom table by entering fields in Standard.  for more details
    refer below screen shots
    Regards,
      Thangam.P

  • Created a document with FM Author 12 and added a template in FM12 to the document

    Created a document with FM Author 12 and added a template in FM12 to the document. Can't open the document again in FM Author 12 "This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel".

    Should both programs be in "Authoring" mode?

  • Need to create the document with originals and checkin that document

    HI Guys,
    My requirement is to write a method to  create the document with originals and checkin that document of DMS.
    Plz suggest the approach to get this requirement solved.
    Regards,
    RSK

    Hi Bala,
    Thanks for the reply.
    Iam writing the code under method like below.
    Importing:
    ls_doc type bapi_doc_draw2.
      APPEND is_files TO it_files.
      CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
        EXPORTING
          documentdata               = ls_doc
       IMPORTING
         documenttype               = iv_doctype
         documentnumber             = iv_docnumber
         documentpart               = iv_docpart
         documentversion            = iv_docvers
         return                     = iv_return
       TABLES
        documentfiles              = it_files.
    Iam checking with document number , document type, document part, document version... it is throwing error message as
    error while checking in and storing: version number(25).
    Please advice whether it is correct approach?
    Regards,
    RSK
    Edited by: shravan kumar ravula on Dec 22, 2011 11:24 AM
    Edited by: shravan kumar ravula on Dec 22, 2011 1:26 PM
    Edited by: shravan kumar ravula on Dec 22, 2011 1:26 PM

  • Help! How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?

    I am a new Indesign user and I have been working with GIMP for the last year creating single colour print-ready PDFs. But now I need to create a document with a FOGRA27 CMYK colour profile and a resolution of at least
    How do I create a document with an imported PDF in 300dpi using a FOGRA27 colour profile?
    I can import the PDF by creating a new document and finding the PDF in places, but it's bad quality.
    The only colour profile I can find under View - Proof Setup is FOGRA39, but I need FOGRA27!
    Help help help, I need to get these files printed in two days!
    Thanks so much..
    xx

    Proof Colors doesn't change the file's color management, it just lets you see what the color values would look like if they are printed unchanged on different output devices. If you want to actually convert the color from one CMYK space to another, it's probably better to do that in Acrobat—Tools>Print Production>Convert Colors.
    There's very little difference between Fogra27 and Fogra39—Fogra27 allows more total ink 350 vs. 330.
    There's nothing you can do to improve the quality of low res images

  • Creating a document with hyperlinks to a glossary

    I am creating a document with hyperlinks to a glossary. How can I permit my reader to return to the page that the hyperlink originated on? Thanks!

    The last time I did this I put each glossary term on its own (much smaller) page, then created a link to return to previous view that covered the entire page so no matter where they clicked they would go back to where they came from. Or you could create a button that jumps to previous view. Of course this only works when each glossary term is linked just once. If the same term is used on different pages you link them all to the glossary but the link on the glossary page will only return to the first instance.

  • I created a document with pages. the documetn was stored in the Cloud. Now I can't open it anymore!

    Yesterday I created a document with pages. The documetn was stored in the Cloud. Today I can't open it anymore! According to the help info I need a new version! 'You need a newer version of Pages. You can download a newer version at the Mac App store'

    What version of Pages are you using on your Mac. I note you have a mobile device do you use pages there, have you opened the document from there, if so what version of pages are you using on the mobile.
    Do you perhaps have both versions of pages on the Mac and are simply trying to open it with the wrong one (the older one)

Maybe you are looking for

  • Webutil demo not working for me-

    this error is being thrown in java console Loading http://x8pv5t71.cis.ad.state.mi.us:8889/forms/java/frmall_jinit.jar from JAR cache proxyHost=null proxyPort=0 connectMode=HTTP, native. Forms Applet version is : 10.1.2.0 java.lang.ClassNotFoundExcep

  • Is there an adapter that lets you use iPhone earbuds with an iMac?

    I have big heavy uncomfortable headphones with a mic that I use for gaming on my iMac. I'd rather use the earbuds from my iPhone. Is there an adapter that lets you use iPhone earbuds with an iMac?

  • HT1386 IOS7 & New Itunes

    Outlook does not have any duplicates in Contacts, Calendar, or Notes yet when synced to IPhone get duplicates in all three Reset Phone, delselected all three and resynced no help. Removed all three from Outlook and synced and all three were now empty

  • Vertical resizing in Table control

    Hi,     I am using 2 table controls in a screen . I have marked vertical resizing  in attributes of the screen. but it is not allowing for vertical scroll. i have checked out in all screen attributes . Please help me with this issue.

  • How do I get iTunes 11.1 onto my 5s?

    I downloaded iTunes to my Windows 7 pc.  I'd like to load iTunes by syncing with my iPhone 5s.  When I plug my 5s in via USB, I get the error:  iPhone cannot be used because it requires iTunes version 11.1 or later.  How do I get iTunes 11.1 onto my