Badi ACC_DOCUMENT

Hi BADI experts,
                         I have a requirement where I have to debug the code in the change method of BADI - ACC_DOCUMENT.....
I have a Implementation for the same as Z_ACC_DOCUMENT_IDOC and I have the code in the change method..
This BADI is triggered before an Inbound Idoc gets posted in SAP. Thing is that when I want to debug an error Idoc using WE19 and specifying the FM so as to get to this BADI code I am facing problems.......
There is one thing here the BADI is Filter dependent and the Filter type is AWTYP. What does this signify?????
One more thing is the call to the BADI is in FM -  BAPI_ACC_DOCUMENT_CHECK and  BAPI_ACC_DOCUMENT_POST ...This I got to knwo through BAPI documentation...
Problem is like when I check for Function module for that particular Idoc's by pressing F4 I am getting a choice of different FM as 1) BAPI_IDOC_INPUT1 and 2)BAPI_IDOC_INPUTP......This is urgent give your suggestions and points will be rewarded accordingly...
Regards,
Raghav

Hello Raghav
Ans 1. BADI ACC_DOCUMENT is filter dependent that means you can activate your BADI Implementation for specific Application Area in this case. (For Example: I have used this BADI for WTY Module Claims Posting, so I used AWTYP = "WTYD" as a filtered application area for BADI Implementation)
Ans 2. BAPIs BAPI_IDOC_INPUTP or BAPI_IDOC_INPUT1 are generic function modules used against the Process Codes for Inbound IDOC Processing, If you see code inside these two BAPIs, you will find a Query to tables like TBDBE or TBDBA, where actual Processing BAPI names are maintained against the respective Message Types. So, technically, you can use any one of these BAPIs to process your IDOC.
Please suggest if you still have any issues.
Thanks & regards,
Amol G. Lohade

Similar Messages

  • Down payment request: posting using BAPI_ACC_DOCUMENT_POST

    Hello, Gurus!
    We have a problem with posting DPR using BAPI.
    We can't carry out DPR for a Vendor.
    The following parametrs were set:
    1) BSTAT = 'S'
    2) ZUMSK = 'A'
    3) BSCHL = '39' 
    4) SHKZG = 'H' 
    5) WRBTR (negative sum is written)
    6) GLVOR (business transaction) - RFBU
    7) we also set assignment to a Funds reservation document.
    When we try to execute BAPI it returns an error RE 041 "Amount in document &1 &2 may not be exceeded".
    Perhaps, FM-PSM thinks that we try post a credit memo...
    We used F-47 before, but we need to use the BAPI.

    Hi,
    I had the same problem with posting a down payment request using BAPI. Actually, it seems SAP does not allow to post this kind of document "natively". Therefore, you have to implement a BADI (ACC_DOCUMENT) in order to make it work.
    1. Be sure you have the latest notes applied for BAPI_ACC_DOCUMENT_POST (especially note 561175)
    2. As for as DP request, call BAPI with DOCUMENTHEADER, ACCOUNTRECEIVABLE and CURRENCYAMOUNT filled with your needed lines.
    In my case, I set SP_GL_IND to 'F'.
    3. In your implementation of BADI, in method CHANGE, set ACCIT-BSTAT to 'S' (noted items) so that balance check will not take it into account. You may customize your line if needed.
    This should be enough to have your document posted. I can give you more details should you need help.

  • Exit or Enchancement for changing amount in vendor line item in MIRO

    Dear All,
    I want to change the amount in vendor line item which get posted through MIRO.System generated 2 line item in case of payment terms of retention is used.
    Requirement is that, in one line item of vendor, amount should get changed based on the logic and adjust the amount in other line item of vendor.
    Request to please let me know, Where in Exit/ Badi or enhancement spot, we can write our coding, so that it should update the amount with new value at the time of posting the document.
    Thanks & Regards,
    Abhinav Jain

    Hi,
    Try with Badi   ACC_DOCUMENT
    Regards,
    Azeem

  • Problem in Document parking through BAPI_ACC_DOCUMENT_POST

    Hi,
       I am trying to park the document using FM BAPI_ACC_DOCUMENT_POST or FM BAPI_ACC_GL_POSTING_POST.
    Here I am making use of the BADI ACC_DOCUMENT to pass the value '2' to C_ACCHD-STATUS_NEW ( C_ACCHD-STATUS_NEW = '2')  by which it should actually park the document.The process is successfull where i am getting the message like "document posted successfully "  and document number generated but I could not see the document through FBV1 or FB01. Can anyone please through some light on this. Thanks in Advance.

    Hi Sarath,
    I have done this let me tell you the approach.
    Step 1: you should implement the BTE RWBAPI01.
    Step 2: Pass value '2' to DOCUMENT_HEADER-STATUS_NEW of the changing parameter of BTE. Now the document will get parked successfully. Please find the sample code.
    TABLES: bsik.
      DATA: w_doc_header        TYPE bapiache09,
            t_accountreceivable TYPE TABLE OF  bapiacar09,
            w_accountreceivable TYPE   bapiacar09,
            t_accountpayable    TYPE TABLE OF   bapiacap09,
            w_accountpayable    TYPE    bapiacap09,
            t_accounttax        TYPE TABLE OF   bapiactx09,
            w_accounttax        TYPE  bapiactx09,
            t_currencyamount    TYPE TABLE OF bapiaccr09,
            w_currencyamount    TYPE  bapiaccr09,
            t_extension2        TYPE TABLE OF   bapiparex,
            w_extension2        TYPE  bapiparex,
            t_extension1        TYPE TABLE OF   bapiacextc,
            w_extension1        TYPE    bapiacextc,
            t_accountgl         TYPE TABLE OF bapiacgl09,
            w_accountgl         TYPE  bapiacgl09,
            w_accountgl_1       TYPE  bapiacgl09,
            t_return            TYPE TABLE OF bapiret2,
            w_lineitems         TYPE zst_vendor_items,
            w_return            TYPE bapiret2,
            l_amount            TYPE char18,
            t_bsik              TYPE TABLE OF bsik,
            w_bsik              TYPE  bsik,
            l_dmbtrp            TYPE bapidmbtr,
    *        l_result            TYPE bapidmbtr,
            l_dmbtrn            TYPE bapidmbtr,
            l_result            TYPE bapidmbtr,
            lv_type             TYPE bapiache09-obj_type,
            lv_key              TYPE bapiache09-obj_key,
            lv_sys              TYPE bapiache09-obj_sys,
            l_fiyrs             TYPE budat,
            l_fiyrt             TYPE allgstid,
            l_index             TYPE sy-index,
            l_belnr             TYPE belnr_d,
            l_datum             TYPE bapi3007-key_date,
            l_message           TYPE char20,
            l_postingdate       TYPE budat,
            l_docdate           TYPE budat,
            l_glacno            TYPE hkont,
            lv_pos              TYPE posnr_acc,
            l_lifnr             TYPE lifnr VALUE '10089',
            l_counter           TYPE posnr_acc VALUE '0000000001',
            l_costcenter        TYPE kostl,
            l_date              TYPE char2,
            l_month             TYPE char2,
            l_year              TYPE char4.
    *---Fill GL details-----*
      CLEAR: w_accountgl,w_doc_header,w_accountpayable,
      w_currencyamount, l_dmbtrp,l_dmbtrn,lv_type,lv_key,lv_sys,
      e_message,w_lineitems,l_year,l_month,l_date.
      REFRESH: t_accountgl[],t_accountpayable[],t_currencyamount[],
               t_extension1[],t_return[].
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = i_vendor
        IMPORTING
          output = l_lifnr.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = w_lineitems-glacno
        IMPORTING
          output = l_glacno.
      SPLIT i_postingdate AT '-' INTO l_year l_month l_date.
      CONCATENATE l_year l_month l_date INTO l_postingdate.
    *  l_postingdate = i_postingdate.
      CLEAR: l_year,l_month,l_date.
      SPLIT i_docdate AT '-' INTO l_year l_month l_date.
      CONCATENATE l_year l_month l_date INTO l_docdate.
    *  l_docdate     = i_docdate.
    *---Fill Header details-----*
      w_doc_header-bus_act    = 'RFBU'."'RMRP'.
      w_doc_header-obj_type   = 'BKPFF'."'REACI'."'VBRK'.
      w_doc_header-obj_key    = '$'.
      w_doc_header-obj_sys    = 'T90CLNT090'.
      w_doc_header-username   = sy-uname.
      w_doc_header-header_txt = i_hdrtext."'Vendor Invoice '.
      w_doc_header-comp_code  = i_compcode."'3000'."p_bukrs.
      w_doc_header-doc_date   = l_docdate.
      w_doc_header-pstng_date = l_postingdate." l_postingdate.
      w_doc_header-doc_type   = i_doctype."'KR'.
      w_doc_header-ref_doc_no = i_reference."'KR'.
    *---Fill Vendor details---------*
      w_accountpayable-itemno_acc  = '0000000001'.
      w_accountpayable-vendor_no   = l_lifnr.
      w_accountpayable-comp_code   = i_compcode."'3000'."p_bukrs.
      w_accountpayable-pymt_meth   = i_payment_method."'T'.
      w_accountpayable-pmnttrms    =  '0002'.
      APPEND w_accountpayable TO t_accountpayable.
    *------Segregating Positive and Negative Amounts---------------------*
      w_currencyamount-itemno_acc   = '0000000001'.  " gl accou +ve 40
      w_currencyamount-currency_iso = i_currency."'USD'.
      w_currencyamount-amt_doccur   = i_amount * -1."500.
      APPEND w_currencyamount TO t_currencyamount.
      w_extension1-field1       = '000000000131'.  "gl psokey
      APPEND w_extension1 TO t_extension1.
      LOOP AT t_lineitems INTO w_lineitems.
        CLEAR: w_accountgl,w_accountgl_1,l_costcenter.
        l_counter = l_counter + 1.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = w_lineitems-glacno
          IMPORTING
            output = l_glacno.
        CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
          EXPORTING
            input  = w_lineitems-costcenter
          IMPORTING
            output = l_costcenter.
        w_accountgl-itemno_acc      = l_counter."'0000000001'.
        w_accountgl-gl_account      = l_glacno."'0000113100'.
        w_accountgl-item_text       = i_hdrtext."'Test'.
        w_accountgl-comp_code       = i_compcode."'3000'."p_bukrs.
        w_accountgl-value_date      = l_postingdate.
        w_accountgl-pstng_date      = l_postingdate.
        w_accountgl-doc_type        = i_doctype."'KR'.
        w_accountgl-segment         = w_lineitems-segment."'SERV'.
        w_accountgl-partner_segment = w_lineitems-partnerseg.
        w_accountgl-cs_trans_t      = w_lineitems-transtype.
        w_accountgl-costcenter      = l_costcenter."'0000000328'.
        w_accountgl-fis_period      = l_postingdate+4(2).
        w_accountgl-fisc_year       = l_postingdate+0(4).
        APPEND  w_accountgl TO t_accountgl.
        IF w_lineitems-credit   = 'H'.
          w_currencyamount-itemno_acc   = l_counter."'0000000002'.
          w_currencyamount-currency_iso = i_currency."'USD'.
          w_currencyamount-amt_doccur   =  -1 * w_lineitems-amount. "500.  " vendor -ve 31
          APPEND w_currencyamount TO t_currencyamount.
          CONCATENATE l_counter '50' INTO w_extension1-field1 .
          APPEND w_extension1 TO t_extension1.
        ELSE.
          w_currencyamount-itemno_acc   = l_counter."'0000000002'.
          w_currencyamount-currency_iso = i_currency."'USD'.
          w_currencyamount-amt_doccur   =  1 * w_lineitems-amount. "500.  " vendor -ve 31
          APPEND w_currencyamount TO t_currencyamount.
          CONCATENATE l_counter '40' INTO w_extension1-field1 .
          APPEND w_extension1 TO t_extension1.
        ENDIF.
        CLEAR :   w_currencyamount,w_lineitems,w_accountgl.
      ENDLOOP.
    *  w_extension1-field1 = 'PARK' .
    *  APPEND w_extension1 TO t_extension1.
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_CHECK'
        EXPORTING
          documentheader = w_doc_header
        TABLES
          accountgl      = t_accountgl
          accountpayable = t_accountpayable
          currencyamount = t_currencyamount
          extension1     = t_extension1
          return         = t_return.
      REFRESH: t_return[].
      CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
        EXPORTING
          documentheader = w_doc_header
        IMPORTING
          obj_type       = lv_type
          obj_key        = lv_key
          obj_sys        = lv_sys
        TABLES
          accountgl      = t_accountgl
          accountpayable = t_accountpayable
          currencyamount = t_currencyamount
          extension1     = t_extension1
          return         = t_return.
      READ TABLE t_return INTO w_return WITH KEY type = 'E'.
      IF sy-subrc <> 0.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        CLEAR: l_message.
        CONCATENATE 'Vendor Invoice'  lv_key+0(10) 'Created' INTO e_message
        SEPARATED BY ''.
      ELSE.
        READ TABLE t_return INTO w_return INDEX 2.
        e_message = w_return-message.
      ENDIF.

  • Posting of bank detail through IDOC from IBM Websphere

    Hi
       I am facing a problem during the seletion of the Basic IDOC type in the websphere .I trying to get the bankdetails of the business partner , for that I have selected the Basic Idoc type in the configaration of the IBM websphere BUPA_C_BANKDETAIL_ADD01.
    But after the seletion when we try to connect its showing error like "<b>Segment couldnot be read for the release 700"</b>
    I have checked with the release of the SAP also , it is 700 only .
    Can anyone please help me out in this matter , its really urjent .
    Thanks & Regards
    Debasri Sarkar

    Hi,
    Have read the documentation for bapi BAPI_ACC_DOCUMENT_POST and check for documentation import parameter EXTENSIONIN 2
    Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIO
    Description
    This enhancement structure can be used to transfer additional fields.
    There are four fields available for each data record (VALUEPART1 - 4), which each contain 240 characters. A defined ABAP dictionary structure can be transferred in the field STRUCTURE, on the basis of which the field contents are read.
    The accounting document can be supplemented and changed in an implemented BAdI ( ACC_DOCUMENT) before the active accounting component is called.
    The class CL_EXM_IM_ACC_DOCUMENT is available as example implementation. Here, for each data record of the parameter that is transferred the ABAP dictionary structure is checked and the content of the fields VALUEPART1 to -4 is set in the structure. If the structure that is transferred contains a field POSNR, the associated lines of the accounting document are updated using the contents of the enhancement.

  • Background FI Posting with clearing, posting key control, etc - How?

    I have the requirement to post FI documents with clearing, with defined posting keys, where some of the fields come from file, some of them defaulted. It should happen in the background.
    I used BAPI BAPI_ACC_DOCUMENT_POST. I had the posting key problem, however with Badi ACC_DOCUMENT using EXTENSION2 I managed to generate the FI docs with the right posting keys.
    Now I have problem with clearing. It seems with this BAPI it's not possible to trigger clearing.
    I found some threads about FM 'POSTING_INTERFACE_CLEARING', however I don't think I can have any influence on the posting key and generated line items. So it doesn't help to me.
    FM BAPI_PAYM_ITEM_POST_CLEARING is for payments.
    Using program RFBIBL00 would be difficult, as far as I can see it can only use file in the specific format as an input.
    I should read my file and generate another file and call this program. This wouldn't be really the best approach.
    In this moment the only solution I can think of is transaction recorder/call transaction approach. Unfortunately this solution would be really release-customizing dependent and not performance-optimized.
    Any other idea?
    Thanks in advance,
    Peter

    Hi Rob,
    Thanks for your answer.
    In one of the sap standard batch program I found FM FI_PSO_DOC_DIRECT_INPUT. I'll give a try, it might help also.
    Best regards,
    Peter

  • Problem with postingkeys in using BAPI_ACC_DOCUMENT_POST

    Hi everyone,
    I'm passing the postingkey, WBS element, Sales tax code into the EXTENSION1 variable of BAPI_ACC_DOCUMENT_POST. But it is populating the postingkeys with other values.
    suppose, i'm passing the posting keys with values 02, 12 but when i check the posted document number in FB03 it is showing the posting keys as 01 & 11.
    Could anyone help me with this.
    Regards,
    Tom

    Hi,
    I just checked the coding of this BAPI and saw that Extension1 is used in a user exit as below, which calls a Business transaction events. So I guess you will have to implement the BTE by creating your own function module to change the posting key according to your requirement.
    Have a look at the function module OPEN_FI_PERFORM_RWBAPI01_P. This is called from the subroutine below
        PERFORM call_customer_function
                TABLES extension1.
    For further details, check the function module's (BAPI_ACC_DOCUMENT_POST) documentation and click on extension1 -- further click on BTE link provided there.
    You can also achieve this using the BADI ACC_DOCUMENT, here you would have to pass your data to extension2 isntead.
    KR,
    Advait
    Edited by: Advait Gode on Aug 7, 2009 8:28 AM

  • How to pass Business place to BAPI_ACC_DOCUMENT_POST

    Hello,
    I am using BAPI_ACC_DOCUMENT_POST to post the accounting documents for  G/Ls. Now iwant to pass the Business Place with GL, as it allows iin FB01, i have searched though the ACCOUNTGL but i didn't find any field for this or like BUPLA.
    I searched in SDN regarding the same but i couldn't find any solution. Please help.
    Regards,
    Kesavaperumal

    Hi,
    Better you use the badi 'BADI_ACC_DOCUMENT'.
    For passing the Business Area you need to use the extention structure of BAPI_ACC_DOCUMENT_POST and then use BADI ACC_DOCUMENT
    with the other parameters you have to populate the extension table of bapi
    data : it_ bapiparex type table of bapiparex,
    wa_bapiparex type bapiparex
    Populate the Extension table
    wa_bapiparex-structure = 'Business Area'.
    wa_bapiparex-valuepart1 = '10'. " Item number
    wa_bapiparex-valuepart2 = ' '. "  pass the value for Business Area
    APPEND wa_bapiparex TO it_bapiparex.
    Call the Bapi to post the document
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader = wa_docheader
    TABLES
    accountgl = it_bapiacgl09
    accountpayable = it_bapiacap09
    currencyamount = it_bapiaccr09
    return = it_bapiret2
    extension2 = it_bapiparex
    Now create an implementation of BADI ACC_DOCUMENT in SE19 and
    write the following code in method CHANGE of BADI
    DATA: wa_extension TYPE bapiparex,
    wa_accit TYPE accit.
    LOOP AT c_extension2 INTO wa_extension.
    Extend BAPI to have Posting Keys defined by user
    IF wa_extension-structure = 'Business_Area'.
    CLEAR wa_accit.
    READ TABLE c_accit INTO wa_accit
    WITH KEY posnr = wa_extension-valuepart1.
    IF sy-subrc = 0.
    wa_accit-BUS_AREA = wa_extension-valuepart2.
    MODIFY c_accit FROM wa_accit INDEX sy-tabix TRANSPORTING BUS_AREA.
    ENDIF.
    ENDIF.
    ENDLOOP.
    Hope this solves your problem
    Regards,
    Dhina...

  • Modify the field u00AB Account u00BB in FB03 Transaction (ECC6)

    Hello,
    I have to modify the value of the field u201CAccountu201D in the general screen and in the item screen of the transaction FB03. (to put inside the alternative account)
    I have tested all the user exit of the transaction but none is useful.
    Then, u201CI_AUTHORITY_ITEMu201D is the only one BADI for the transaction, but it occurs too early in the program to change data.
    Ie, with it I can change the field in the intern table (SAPLF064)XBSEG but this field is replaced with another value later in the process. And I canu2019t change this other value because of checks on it in the program.
    Have you got any suggestion before I run the specific solution of the ZFB03 ?
    Regards.

    Alfred
    Check BADI "ACC_DOCUMENT",  it is filter dependent, so set the appropriate filter once you create the Implementation...
    Thanks
    Amol Lohade

  • Accounting:post general g/l with acc_gl_posting01,doubt:credit/debit-ledger

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. >
    Hi,
    I need an idoc for posting a general account from XI to SAP. I wuold like to import the data for filling the transiction FB50L.
    I found this idoc: acc_gl_posting (basic type: acc_gl_posting01), but I have the followiong problems:
    - Where can i find the credit/debit option (in which segment)?
    - Where can i find the ledger option (in which segment)?
    Thank you very much for your help!!
    Gabri

    Hi Gabri,
    I've got an idea. You can use basic type ACC_DOCUMENT02 and to enter the value of your ledger in structure E1BPPAREX. Additionally you should implement BADI ACC_DOCUMENT.
    Regards,
    Svetlin

  • Field on Document Header using BAPI for posting

    Hi there.
    I need to fill the BKPF-BRNCH field (the Branch Number header field in transaction FB01) to post a document by means of the BAPI_ACC_DOCUMENT_POST function module, but I haven't find the field in the DOCUMENTHEADER table, and I can't figure out how to fill it.
    Can anyone help me...?
    Thanks in advance.

    Hi
    U can use the extension structure in order to transfer fields not managed by BAPI structure.
    The BAPI BAPI_ACC_DOCUMENT_POST manages the extensions by 2 different way:
    - BTE RWBAPI01
    - BADI acc_document
    In both methods u need to fill the BAPI structure for extension: parameter EXTENSION1 (BTE) like BAPIACEXTC and EXTENSION2 (BADI) like BAPIPAREX and then read the data of the extension and transfered them to ACCIT structure in the method above.
    This is an example from my old program using BTE:
    Fill extension paramenter:
    ZSDFI_BAPI_EXTENSION-ITEMNO_ACC = ITEMNO_ACC.
    ZSDFI_BAPI_EXTENSION-ESENZIONE  = W_VENDOR-KIDNO.
    MOVE ZSDFI_BAPI_EXTENSION TO EXTENSIONS.
    APPEND EXTENSIONS.
          CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
            EXPORTING
              DOCUMENTHEADER = BAPIACHE09
            TABLES
              ACCOUNTGL      = ACCOUNTGL
              ACCOUNTPAYABLE = ACCOUNTPAYABLE
              ACCOUNTTAX     = ACCOUNTTAX
              CURRENCYAMOUNT = CURRENCYAMOUNT
              EXTENSION1     = EXTENSIONS
              RETURN         = RETURN.
    Where ZSDFI_BAPI_EXTENSION is dictionary structure with the new fields.
    In the BTE function module I transfer the data to ACCIT:
    TABLES: ZSDFI_BAPI_EXTENSION.
      DATA: _REPRF TYPE LFB1-REPRF.
      LOOP AT EXTENSION.
        MOVE EXTENSION TO ZSDFI_BAPI_EXTENSION.
        LOOP AT IT_ACCIT WHERE POSNR = ZSDFI_BAPI_EXTENSION-ITEMNO_ACC.
          IT_ACCIT-KIDNO      = ZSDFI_BAPI_EXTENSION-ESENZIONE.
          IT_ACCIT-ZLIFNR     = ZSDFI_BAPI_EXTENSION-ZLIFNR.
          IT_ACCIT-ZJ_3AKVGR6 = ZSDFI_BAPI_EXTENSION-CANALE.
          IT_ACCIT-J_3AKVGR8  = ZSDFI_BAPI_EXTENSION-NEGOZIO.
          IT_ACCIT-ZZAREAG    = ZSDFI_BAPI_EXTENSION-AREA_GEOGRAFICA.
          MODIFY IT_ACCIT.
        ENDLOOP.
      ENDLOOP.
    Max

  • BAPI to park document in FV50 and FV50L

    Is there any BAPI or Funtion Module to park document in FV50 and FV60L.
    Thanks in advance

    Dear all,
    I know this not correct time to give answer for this post, but i had a same requirement and i got solution, so i want share this. I hope this one will helpful for upcoming viewers.
    We can use "BAPI_ACC_DOCUMENT_POST" to park a FI document, for that we have to implement below notes.
    SAP Note No. 1282005
    SAP Note No. 1157017
    After implementing this notes we have to implement BADI "ACC_DOCUMENT" and change the value of C_ACCHD-STATUS_NEW as 2 or 3.
    Please refer this link: below link for more details.
    http://scn.sap.com/thread/3222250

  • Trigger IDOC ACC_DOCUMENT

    Hi all,
    i trying to set up an Outbound scenario for Accounting documents.The idea is to send to an external system the idoc ACC_DOCUMENT03 that is associated to message type ACC_DOCUMENT.
    When configuring the ALE distribution model (BD64) i tried to add the message type ACC_DOCUMENT but that not possible since this kind of information should be done using BAPI and not message type (SAP message information).
    So, did all the customizing needed for associate the correct BO (correspondent Bussiness Object BUS6035) and the method POST.Also customized the obj. channel serialization
    Still, at this moment my dificulty is to trigger the IDOC creation. Is there any way of doing it automatically? Our i need to use a developed abap program (BADI or user-exit) or even workflow? I'm trying to avoid writting code for this scenario. I was hopping that something like the Change Pointers exist's for this kind of information/scenario.
    Can any one give a suggestion??
    Thanks for your time,
    Best Regards,
    Pedro

    It seems that SAP does not provide outbound ACC_DOCUMENT03. In [this thread|Example program - posting accounting document,  Idoc ( ACC_DOCUMENT );, Miroslaw shows an abap program which generates the ACC_DOCUMENT03 idoc. If it works, also reply to him.

  • BADI for changing fields during Creation of BP in CRM

    Hello to everyone,
      I need to find a BADI (or other way) to default several fields during BP creation in CRM (4.0 SR1 SP9). The fields I will like to set are TAX TYPE, TAX NUMBER, TAX CATEGORY, etc.. I have found the BADI BUPA_TAX_UPDATE but i dont see any suitable parameters (structures) to changes these fields. Please advice and thanks in advance.

    Hi
    If you use function BUPA_NUMBERS_GET then your BP number will already be buffered and you can avoid a DB read. It may also be that the BP is not in the DB yet anyway.
    You can only pass one GUID in at a time - loop through IT_CHANGED_INSTANCES into a variable of type BU_PARTNER_GUID and pass that into the function as input parameter IV_PARTNER_GUID.
    Cheers
    Dom

  • Implementing BADI MD_ADD_COL_EZPS for MD04 custom column

    Hi there,
    I'm using BADI MD_ADD_COL_EZPS to display 3 new buttons and three new columns in MD04.
    For each line item that is displayed, the custom column is filled, after the button is hit -This works fine.
    My Question is:
    Is there any way to limit the value that is filled into the new column so that it only appears on the FIRST line item/row?
    (At the moment it is repeated all the way down the page - the new value is a material characteristic, so doesn't change, will always be the same for each line)
    I've looked at all the available structures/tables in the FILL_ADD_COLUMNS method of the BADI, and none seem suitable
    to determine the "first" row. (ie. something like the way SY-TABIX or SY-INDEX might be used)
    Any help appreciated.
    Thanks,
    David.

    Hi Shubhendu,
    in the method 'ACTIVATE_ADD_COLUMNS', you can set the flag EZ1_MODE to '1' to make the first column visible always. (it's been a while, but I think setting it to '2' makes it visible when the button is pressed.)
    Same applies to EZ2_MODE for second column, EZ3_MODE for third.
    look at the flags/parameters in this method, and also in FILL_ADD_COLUMNS, to fill the data.
    here you need to fill structure EMDEZX_USEX1 (for column 1) etc.
    The code is hit for each record displayed in MD04
    Hopefully this helps you.
    Regards,
    David

Maybe you are looking for

  • Can Pages Create Forms?

    In other word processors (Open Office 2.2, to be precise - and probably word, but I don't use it so I don't know) you can create a form that can be edited by whoever reads your document - ie, you can create something like: First Name: Last Name: Occu

  • Order cost plan in report CN41N

    Hi Gurus, Would appreciate if any one of share what is  'Order Cost Plan" in report CN41N. Infact, the values displayed in Order cost plan column neither coincide with either Project Cost Plan nor Actual cost displayed. Looking forward to hear and th

  • Parsing data containing quotation marks

    Hi all, I am looking to parse through and use data in the following format: ed[277]=[277,"Smith",4,14,0,0,"",42493,"AV (A) ","Aston Villa (A) ",19,6.3,7.0,6.3,7.0,"NU"]As you can see, some fields contain quotation marks, and when I test parsing such

  • My HP printers' software is disabled by/not compatible with any versions of Firefox I have ever installed and this is extreme;y inconvenient.

    I have Windows Vista as my operating system, I install every Firefox update. An earlier version of Firefox allowed me to use my 1st HP printer but haven't been able to use that printer or a newer one for 2 years. I used to reinstall the software each

  • Is there a fix for IOS 12.1 breaking Overdrive?

    After upgrading Itunes to IOS 12.1, Overdrive Media Console can not see the Ipod Touch. The message when attempting to transfer is, "No portable players could be found." I tested 4 different Ipods which had all been working with Overdrive with the sa