How to update Assignment field in Accounting Document through BAPI ?

I need to change Assignment field in already posted accounting document through bapi or some other automatic method. Please tell me exactly which bapi I should use and how can I pass the changed assignment field?

Hey,
I couldnt find any BAPIs which update an accounting document. I think the safest way is to record FB02 and use BDC/Call Transaction.
-Kiran
*Please reward useful answers

Similar Messages

  • How to update Assignment field in Accounting Document ? Any method

    Hello experts,
    i want to change Assignment field in already posted accounting document. The field is "GSBER".
    i think i can't do a BDC on transaction FB09 or FB02 because this field is no available to change..
    any advice ?
    regards.

    i was looking for some bapi, then i found
    BAPI_ACC_DOCUMENT_REV_CHECK Accounting: Check Reversal
    BAPI_ACC_DOCUMENT_REV_POST Accounting: Post Reversal
    maybe i could use that, or find an enhancement point in the aplication ?.
    I suppose i have both options.

  • Assignment field in accounting documents

    Hi,
    we are posting intercompany billing documents with EDI.
    Process is as follow
    1) we generate Intercompany billing document VF01.When this document is saved ,an accounting document xxxxxx is generatedand  IDOC is triggered and posted in Account payables of payer company code simultanoesuly an account document 'yyyyyyyyyy' is generated. this is seen in FBL1n Transaction.
    In this accounting document yyyyyyyyyyy ,there is a field 'assignment' which remains blank. we need to have entries in  this field ' asssignment'  copied from similar field in accounting document 'xxxxxxxxx'
    BR,
    Zulfikar

    hi
    use substitution

  • How to Update PO(ekko and ekpo) by using Bapi

    Hi Experts,
    I am very new in Abap ,I want to update some fields of Purchase order through Bapi.
    In  Selection screen  i need these things,
    PO Number ,  material, Delivery date
    and i want to update the below fields of  Purchase order(PO)
    1.   Street/House number  ,Postal Code/City  in header level (Give any dummy values for street/house number city  and postal code)
    2.  PO quantity, Delivery date , net price  for all items which has matching material as in selection screen
    and i am not giving data from excel sheet ,,i am giving data directly or through selection screen for the above mentioned fields.
    please give me some solution or sample code so that i can do it.
    Thankx in advance..
    Ritesh

    First declare the header and item structure to pass the values to FM. Now the values that you enter in selection screen are captured in internal table. So you can loop this internal table and pass the values to function module item and header details.
    EX:
    Decleration
    DATA: PO_HEAD TYPE BAPIMEPOHEADER,
               PO_HEADX TYPE BAPIMEPOHEADERX,
               PO_ITEM TYPE BAPIMEPOITEM OCCURS 0 WITH HEADER LINE,
               PO_ITEMX TYPE BAPIMEPOITEMX OCCURS 0 WITH HEADER LINE,
               COUNT TYPE I VALUE 1,
               RETS TYPE BAPIRET2 OCCURS 0 WITH HEADER LINE.
    Pass the values to po_head po_headx po_item po_itemx.
    loop. selection screen internal tables
    append . Append the internal tables
    endloop.
    now call the bapi and pass the values.
    CALL FUNCTION 'BAPI_PO_CHANGE'
       EXPORTING
         PURCHASEORDER                = PO_NUM
    *   POHEADER                     =
    *   POHEADERX                    =
    *   POADDRVENDOR                 =
    *   TESTRUN                      =
    *   MEMORY_UNCOMPLETE            =
    *   MEMORY_COMPLETE              =
    *   POEXPIMPHEADER               =
    *   POEXPIMPHEADERX              =
    *   VERSIONS                     =
    *   NO_MESSAGING                 =
    *   NO_MESSAGE_REQ               =
    *   NO_AUTHORITY                 =
    *   NO_PRICE_FROM_PO             =
    * IMPORTING
    *   EXPHEADER                    =
    *   EXPPOEXPIMPHEADER            =
      TABLES
        RETURN                       =  RETS
        POITEM                       = ITEM
        POITEMX                      = ITEMX
    *   POADDRDELIVERY               =
    *   POSCHEDULE                   =
    *   POSCHEDULEX                  =
    *   POACCOUNT                    =
    *   POACCOUNTPROFITSEGMENT       =
    *   POACCOUNTX                   =
    *   POCONDHEADER                 =
    *   POCONDHEADERX                =
    *   POCOND                       =
    *   POCONDX                      =
    *   POLIMITS                     =
    *   POCONTRACTLIMITS             =
    *   POSERVICES                   =
    *   POSRVACCESSVALUES            =
    *   POSERVICESTEXT               =
    *   EXTENSIONIN                  =
    *   EXTENSIONOUT                 =
    *   POEXPIMPITEM                 =
    *   POEXPIMPITEMX                =
    *   POTEXTHEADER                 =
    *   POTEXTITEM                   =
    *   ALLVERSIONS                  =
    *   POPARTNER                    =
    *   POCOMPONENTS                 =
    *   POCOMPONENTSX                =
    *   POSHIPPING                   =
    *   POSHIPPINGX                  =
    *   POSHIPPINGEXP                =
    *   POHISTORY                    =
    *   POHISTORY_TOTALS             =
    *   POCONFIRMATION               =
       CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    * EXPORTING
    *   WAIT          =
    * IMPORTING
    *   RETURN        =
    Hope it helps.
    Regards,
    K.Srikanth Reddy.

  • How to update profit center in posted document without profit center ?

    HI,
    I want to know,
    How to update profit center in posted document without profit center ?
    So that i can get my profit center accouting report proper.
    Thanks
    Nilesh

    There is a long story about profit center accounting. I assume you are using Classic PCA, this means you can see the PCA documents.  And the solutions is below:
         For P/L account, even you don't maintain cost element for it, if you maintain the profit center in the application (Frontend transaction), then PCA line items will be generated for this account.
        For B/S account,  if you maintain the default Profit Center with transaction 3KEH/3KEI, the PCA line items will generated for this account also.
      Hints, don't maintain default profit center for AR/AP accounts, these accounts to be treated in periodic processing.
      First, calculate the distribution/adjust by F.5D, then transfer it by 1KEK. for others account rather than AR/AP, use F.5E
    For you case, if this account is P/L account, but you don't maintain profit center in the transaction, you can maintain default profit center as B/S account in 3KEH and 3KEI, then transfer it subsequently by transaction 1KE8.
    Good Lucky!
    Flex Yang

  • How to update key fields for table

    Hi,
    how to update key fields for a table.The update statement is not working for the same.
    Regards,

    Hi,
    See the below example.
    TABLES SPFLI.
    DATA WA TYPE SPFLI.
    MOVE 'AA' TO WA-CARRID.
    MOVE '0064' TO WA-CONNID.
    MOVE 'WASHINGTON' TO WA-CITYFROM.
    UPDATE SPFLI FROM WA.
    MOVE 'LH' TO SPFLI-CARRID.
    MOVE '0017' TO SPFLI-CONNID.
    MOVE 'BERLIN' TO SPFLI-CITYFROM.
    UPDATE SPFLI.
    CARRID and CONNID are the primary key fields of table SPFLI. All fields of those lines where the primary key fields are "AA" and "0064", or "LH" and "0017", are replaced by the values in the corresponding fields of the work area WA or the table work area SPFLI.
    Regards,
    raj.

  • How to update single field

    Hi frnds,
                        How to update single field data in Z table .
                       I am taking data from screen, when i press update button  the data will store specific field data in Z table.

    Dear Rakhi,
    You can use the below syntax.
    Hope this would solve your problem.
      LOOP AT tpra INTO wpra.
        UPDATE zpra
        SET    pra2 = wpra-pra2
        WHERE  pra1 = wpra-pra1.
      ENDLOOP.
    In WHERE give KEY VALUES
    In SET give the particular value that has to be changed.
    Regards,
    Pintoo
    Edited by: pintoo2805 on May 18, 2010 7:10 AM

  • How to update ABSKZ field in the table EKPO

    Hi
    Is there any way to update the rejection indicator (ABSKZ) field of table EKPO?.
    I am looking at BAPI_CHANGE_PO FM, But it does not have ABSKZ field in the item structure BAPIMEPOITEM.
    Do I need to extend the BAPI structure with ABSKZ field ?
    Regards
    Raj.

    Hi
    To extend  BAPI_PO_CHANGE  for EKPO-ABSKZ field , we have to add field in the structure BAPI_TE_MEPOITEM to pass it to  EXTENSIONIN. As ABSKZ field already availble in the EKPO it is not allowed to add ABSKZ in the structure BAPI_TE_MEPOITEM. it is throwing below error message.
    Field ABSKZ in table EKPO is specified twice. Please check
    Since it is not Z field and also not availble in the structure BAPIMEPOITEM  not sure how to update ABSKZ field in the EKPO table.
    Please advice.
    Regards
    Raj

  • How to update 2 fields automatically rest manually on page

    Hello folks,
    I have got a question on how to update 2 fields in a table automatically (in my case this is one field for the user and one field for the correct date and time). This should happen automatically every time an user changes a row in the table. But it seems as if i cant change the fields i tried it with the changing of the textfield but he dont change the values in the database. I even tried a separate update statement but since this is set after the commitchanges() command it seems as if he ignores any following commands.
    So anybody a good idea how i can change easily these two data fields? I just cant believe that you must manually change the fields, thats not the use of these 2 fields.
    Thanks in advance for your help
    Acinonyx

    To be exact i have got a page with different fields which get their data from my database. Two fields which contain an userid and the other a date and time value should get updated automatically when the user changes something of the other values on this page and press a button which calls the commitchange method. But since this should happen automatically and not manually i cant put these changes in the database. The manual changes are saved without any problems but the automatical changes not. So my question is how can i change a value programmatically and make him save these canges in the database?
    I already tried to put the new values in the fields or even detailed in the database but i cant get him to update these two fields.
    Acinonyx

  • How to update the field ZLSPR of table BSEG

    HI Friends,
    Can anyone tell me how to update the field ZLSPR of table BSEG? I've a 700 line abap program and I should include some logic in this program to make an entry into BSEG-ZLSPR. Is there any FM/BAPI available? Is BDC a healthy approach?. My team lead do not want me to use UPDATE statement....please help.
    Thanks in advans,
    Varsha.

    Hi,
    Hi ,
    You will need to group that radiobuttons so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons and then right click on them, Now choose define group. Once you have done this you should not need any of the "clear" or "='X'" statements SAP should control it all for you.
    hope this helps
    Reward if found helpfull...
    Venkoji Babu.

  • How to update the field EKET-WEMNG (delivered) in database using BAPI.

    Dear All,
    How to update the values to good received field for EKET WEMNG (delivered) in database using BAPI and please give me the standard bapi and explain the process  how to update to database bcoz am new to bapi concepts and i will be thankful to your help.
    Regards,
    Tazeer.

    this field is only updated when you do a goods receipt. 
    So the only BAPI that can do this is the BAPI GoodsMovement  (BUS2017)

  • Updating EAN11 field in mara table through BAPI_MATERIAL_SAVEDATA

    Hi,
    I want to update EAN11 field in mara table through BAPI_MATERIAL_SAVEDATA could anybody please guide me how to achieve.
    it would be great if is there any sample code for the same.
    Thanks

    Please give the following fields in the lwa_uom structure as well
    lwa_uom -ALT_UNIT
    lwa_uom -NUMERATOR
    lwa_uom -DENOMINATR
    DATA: lwa_uom TYPE BAPI_MARM,
    lwa_uomx TYPE BAPI_MARMX.
    DATA: lt_uomx TYPE STANDARD TABLE OF BAPI_MARM,
    lt_uomx TYPE STANDARD TABLE OF BAPI_MARMX.
    lwa_uom-ean_upc = '123456' " enter the value here
    lwa_uom-ean_cat = 'abcd'.
    append lwa_uom to lt_uom.
    lwa_uomx-ean_upc = 'X'.
    lwa_uomx-ean_cat = 'X'.
    append lwa_uomx to lt_uomx.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
    EXPORTING
    unitsofmeasure = lt_uom
    unitsofmeasurex = lt_uomx.
    Edited by: Rahul Babukuttan on Dec 21, 2011 4:23 PM

  • BTE while posting accounting document through MIRO

    Hi All,
    I am doing MIRO posting with PO,while MIRO posting accounting document is getting created for it.  I need a BTE while posting accounting document through MIRO to trigger workflow(through event).
    For direct accounting document posting I found the BTE 1030 to trigger workflow.
    Thanks
    Sree

    Hello !
          The BTE required is "00001120     DOCUMENT POSTING:  Field substitution header/items".
          Double click on this entry at FIBF transaction and you will find the function module SAMPLE_PROCESS_00001120
          Take a copy of this function module and go ahead.It is not possible to change the tables T_BKPF and T_BSEG. So, use the tables T_BKPFSUB and T_BSEGSUB.
    Regards,
    S.Suresh

  • How can I create a new Numbers Document through AppleScript?

    How can I create a new Numbers Document through AppleScript?
    I try this:
    tell application "Numbers"
    make new document with properties {template name:"blank"}
    end tell
    But don't work.
    Where can I find documentation about it?
    Thanks

    If you try to invent your own syntax, you are starting on very wrong basis.
    The required syntax is defined by the Numbers AppleScript's dictionary.
    This one doesn't know what is a template.
    This is why, in the link posted by badunit, I use an other scheme to create a new document.
    I know that it's awful but it's the only one available at this time.
    Yvan KOENIG (VALLAURIS, France) samedi 4 juin 2011 11:25:25
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to create shipment cost document through BAPI?

    Hi SAP Guru,
    My requirement is to create shipment cost document through BAPI.
    Is there any standard BAPI to create Shipment cost documents? If any buddy no please help me out.I am in client place i have find out the solution..
    Thanks & Regards,
    Pankaj Sinha

    Hi Pankaj,
    See the following link for more help.
    IDOC/BAPI for changing Shipment cost number/document
    Regards

Maybe you are looking for

  • How to create invoice but accounting document is cleared already?

    Hi, I cannot able to create invoice for the return order, for this return order accounting document has been cleared but the invoice is not created. Here i need to create the invoice. Advice me to solve this issue. Thanks Raghu

  • HTTP_RESP_STATUS_CODE_NOT_OK / 503 -Service Unavailable

    In  SXMB_MONI Call Adapter step has the following error. Can someone tell me how to fix this error please?. This is File to File Scenario td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active

  • Itunes8 won't download at all!! :(

    Helloo PLEASEEEEE can someone help me?? My friends got me the new ipod nano for my birthday but I haven't been able to use it because iTunes8 won't download! firstly it came up with a sign 'Error' (and then a number i can't remember) and now that's s

  • Custom Transaction Data getting Transfer from R/3 to APO only through CFM3

    Custom Transactional Data getting Transfer from R/3 to APO only through CFM3 Requirement :Automatic updation of Custom Transactional Data R/3 to APO Auto Transfer like Normal PO Changes Reflection      While working with Core Interface The Standard T

  • Write Web service to return binary file

    Hi there, I am trying to write a simple weblogic web service which read a file (pdf, doc, png...) and return the file in SOAP (as attachment). I haven't found any bea tutorial on that topic. I would appreciate if you could provide me some links or so