IDOC for F-53 Posting Payment Document ?

Dear All,
Please advise which IDOC i can use for Posting Payment Document ? I have scenario to send the IDOC payment document to others SAP system.
Thank You and Best Regards
Fernand

I guess you can use the same messagetype for outgoing payments:
report  zzinbound_idoc.
data: g_idoc_control_record like edi_dc40 occurs 0 with header line.
data: g_edidd like edi_dd40 occurs 0 with header line.
data: g_e1bpache09 like e1bpache09.
data: g_e1bpacar09 like e1bpacar09.
data: g_e1bpaccr09 like e1bpaccr09.
data: g_e1bpacgl09 like e1bpacgl09.
parameter: mode type c default 'A'.
refresh: g_idoc_control_record, g_edidd.
clear:   g_idoc_control_record, g_edidd.
*-Build Control Record -*
g_idoc_control_record-mestyp  = 'ACC_DOCUMENT'.   "Message type
g_idoc_control_record-idoctyp = 'ACC_DOCUMENT03'. "IDOC type
g_idoc_control_record-direct  = '2'.              "Direction
* Receiver
case sy-sysid.
  when 'DE2'.
    g_idoc_control_record-rcvpor = 'SAPDE2'.     "Port
    g_idoc_control_record-rcvprn = 'IDOCLEGACY'. "Partner number
endcase.
g_idoc_control_record-rcvprt = 'LS'.             "Partner type
g_idoc_control_record-rcvpfc = ''.               "Partner function
* Sender
g_idoc_control_record-sndpor = 'FILE_PORT'.      "Port
case sy-sysid.
  when 'DE2'.
    g_idoc_control_record-sndprn = 'IDOCLEGACY'. "Partner number
endcase.
g_idoc_control_record-sndprt = 'LS'.             "Partner type
g_idoc_control_record-sndpfc = ''.               "Partner function
g_idoc_control_record-refmes = 'Customer clearing'.
append g_idoc_control_record.
*-Build Idoc Segments -*
*-------E1BPACHE09 (HEADER)
clear g_edidd.
g_edidd-segnam = 'E1BPACHE09'.
g_edidd-segnum = 1.
clear g_e1bpache09.
g_e1bpache09-bus_act    = 'RFBU'.
g_e1bpache09-doc_date   = sy-datum.
g_e1bpache09-doc_type   = 'DZ'.
g_e1bpache09-comp_code  = 'BP01'.
g_e1bpache09-pstng_date = sy-datum.
g_e1bpache09-username   = sy-uname.
g_e1bpache09-ref_doc_no = '0090000025'.
move g_e1bpache09 to g_edidd-sdata.
append g_edidd.
*-------E1BPACGL09 (ACCOUNT GL) (Debit) (Factoring Partner)
clear g_edidd.
g_edidd-segnam = 'E1BPACGL09'.
g_edidd-segnum = 2.
clear g_e1bpacgl09.
g_e1bpacgl09-itemno_acc = 0000000002.
g_e1bpacgl09-gl_account = '0000157000'.
g_e1bpacgl09-customer   = 'C6130'.
g_e1bpacgl09-acct_type  = 'S'.
g_e1bpacgl09-comp_code  = 'BP01'.
*g_e1bpacgl09-costcenter = '0000001602'.
move g_e1bpacgl09 to g_edidd-sdata.
append g_edidd.
*-------E1BPACAR09 (ACCOUNT RECIEVABLE) (Credit) (Customer)
clear g_edidd.
g_edidd-segnam = 'E1BPACAR09'.
g_edidd-segnum = 3.
clear g_e1bpacar09.
g_e1bpacar09-itemno_acc = 0000000001.
g_e1bpacar09-customer  = 'C6110'.
g_e1bpacar09-comp_code  = 'BP01'.
g_e1bpacar09-alloc_nmbr = '0090000025'. "BSEG-ZUONR ?
move g_e1bpacar09 to g_edidd-sdata.
append g_edidd.
*-------E1BPACCR09 (CURRENCY AMOUNT)
clear g_edidd.
g_edidd-segnam = 'E1BPACCR09'.
g_edidd-segnum = 4.
clear g_e1bpaccr09.
g_e1bpaccr09-itemno_acc = 0000000001.
g_e1bpaccr09-curr_type  = '00'.
g_e1bpaccr09-currency   = 'NOK'.
g_e1bpaccr09-amt_doccur = -111.
move g_e1bpaccr09 to g_edidd-sdata.
append g_edidd.
g_e1bpaccr09-itemno_acc = 0000000002.
g_e1bpaccr09-curr_type  = '00'.
g_e1bpaccr09-currency   = 'NOK'.
g_e1bpaccr09-amt_doccur = 111.
move g_e1bpaccr09 to g_edidd-sdata.
append g_edidd.
*-Create idoc -*
*-Syncronous
if mode = 'S'.
  call function 'IDOC_INBOUND_SINGLE'
    exporting
      pi_idoc_control_rec_40              = g_idoc_control_record
*     PI_DO_COMMIT                        = 'X'
*   IMPORTING
*     PE_IDOC_NUMBER                      =
*     PE_ERROR_PRIOR_TO_APPLICATION       =
    tables
      pt_idoc_data_records_40             = g_edidd
    exceptions
      idoc_not_saved                      = 1
      others                              = 2.
  if sy-subrc  0.
    message id sy-msgid type sy-msgty number sy-msgno
            with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
*-Asynchronus
else.
  call function 'IDOC_INBOUND_ASYNCHRONOUS'
    in background task as separate unit
    tables
      idoc_control_rec_40 = g_idoc_control_record
      idoc_data_rec_40    = g_edidd.
  commit work.
endif.
write: / 'Goto transaction F.13'.
Edited by: Erik Hoven on Feb 24, 2009 12:55 PM

Similar Messages

  • Possible to clear vendor open item against already posted payment document?

    Hi
    Can you advise if it is possible to clear an open item against already posted payment/clearing doc? Here is the background to the scenario:
    An invoice was posted with transaction FB60. This was subsequently picked up in the payment run F110 and cleared by payment document number 200005678. The item went to the bank on the paymnet file and was paid out to the vendor. The transaction reference, which appeared on the incoming bank statemnet was the payment document number 200005678.
    Subsequently it was discovered that the original invoice should have been posted with reference to a PO using MIRO. The requirement now is to reverse the paymnet documnet 200005678 in SAP, then reverse the document that was posted using FB60. After this the invoice will be posted using MIRO. This will create an open item on the vendor account.
    This item will not be piad out again. Therefore the requirement is to try clear that open item against the previously posted payment document 200005678.
    Is there any way to clear this vendor open item against the originally posted payment document 200005678?? Or any other advice on how this scenario can be handled in SAP?
    Thank for your help.
    Mike

    Hi,
    I tried that option in our test system. I ran FBRA and entered Paymnet Documnet Number (+Clearing Doc Number), Company Code, Fiscal Year.
    Then chose menu option Clearing -> Reset Cleared Items.
    The system pops up a window asking for a reversal reason and reversal date.  I use 01 and posting date of today.
    The system now posts another cleared document. That document places the invoice as an open item on the vendor account. It does not place the Payment Document as an open item on the account.
    When I go to F-44 only the open vendor invoice is showing there. There is no open paymnet document.
    Is there perhaps some configuration setting that stops the placement of the paymnet document as an open item when reset?
    Thanks for your help again.

  • Error in posting payment document

    While posting outgoing payments through T-code F-53, the client received the error message ‘The entry 1210 is missing in table T043G’ and the system did not allow the posting payment document.
    Please anybody can give me solution for this.

    Hi,
           even if we are facing similiar kind of problems , I will give you some info hope this helps.
        for technial perspective print character will be determined from table J_1ACHRDET  in the FM   J_1A_DET_CHARACTER, code is here
                   SELECT SINGLE * FROM J_1ACHRDET
                  WHERE J_1AFITPI = X_FITYPI
                  AND   J_1AFFLAG = X_FFLAG
                  AND   J_1AFITPR = X_FITYPR
                  AND   J_1ATTYPE = LV_TTYPE.
                   X_FITYPI = T001Z-PAVAL(2)    
                   X_FFLAG = blank
                   X_FITYPR = I_FITYP.             " I_FITYP is from internal table VBRK-J_1AFITP ( tax type)
                    LV_TTYPE  is from  J_1ACHRDET-J_1ATTYPE.  " type of transaction based on land and  region values are D or  E or  I
              branch will be determined from TVTA table
              SAP will apend   character branch and sequence number and gives official numbering
        for functional perspective you need to do configuration based on your requirements
    here is the path is SPRO -> Cross-Application Components -> General Application Functions -> Cross-Application Document Numbering -> Argentina
    please add point if this is useful

  • Creation of batch input session for mass reversal of payment documents

    Hello FI experts,
    There is a business requirement in which the users want to reverse the payments en-masse. This can be achieved by creating a batch input session via a custom program to upload the documents from excel . Then calling FBRA and FB08 to do the resetting and reversal.
    My issue is how to create the batch input session ? Please help.
    Regards,
    Van

    Hi,
    I have got developed such program earlierr.
    You can define your custom program specification as below:-
    (A) Based on the selection screen, the program will read all the records (field document number VBLNR, company code ZBUKR and year from field ZALDT) from table REGUH. (Proposal Run Indicator XVORL should be blank.)
    (B) If Paying company code (REGUH-ZBUKR) is equal to Sending company code (REGUH-ABSBU):-
           Step 1:- For each record of (Payment Document Number (REGUH-VBLNR), Company code (REGUH-ZBUKR), and Fiscal Year (REGUH-ZALDT)) it will call transaction FBRA and will reset the clearing of the document.
           Step 2:- Then call transaction FB08 and pass the data as below:-
                  Document Number     =     Payment Document Number (REGUH-VBLNR)
                  Company Code     =     Company code (REGUH-ZBUKR)
                  Fiscal Year               =     Fiscal Year (REGUH-ZALDT)
                  Reversal Reason, Posting Date and Posting period will be defaulted from the selection screen of out program.
    (C) If Paying company code (REGUH-ZBUKR) is not equal to Sending company code (REGUH-ABSBU):-
           Step 1:- For each record of (Payment Document Number (REGUH-VBLNR), Company code (REGUH-ZBUKR), and Fiscal Year (REGUH-ZALDT)) it will call transaction FBRA and will reset the clearing of the document.
            Step 2:- for each record of (Payment Document Number (REGUH-VBLNR), Company code (REGUH-ZBUKR), and Fiscal Year (REGUH-ZALDT)) get the cross company code document number (BKPF-BVORG) and
                   (ii) Then find out the Document number (BKPF-BELNR) from BKPF matching BUKRS = Sending company code (REGUH-ABSBU) and GJAHR = Fiscal Year (REGUH-ZALDT) and BVORG = cross company code document number (BKPF-BVORG) as obtained above in
                  (iii) Then call transaction FBRA and will reset the clearing of the document passing BKPF-BELNR, BKPF-BUKRS and BKPF-GKAHR as obtained in (ii) above.
           Step 3:- Then call transaction FBU8 and pass the data as below:-
                  Cross CC Doc. Number=     Blank
                  Document Number     =     Payment Document Number (REGUH-VBLNR)
                  Company Code     =     Company code (REGUH-ZBUKR)
                  Fiscal Year               =     Fiscal Year (REGUH-ZALDT)
                  Reversal Reason, Posting Date and Posting period will be defaulted from the selection screen of out program.
    Regards,
    Gaurav

  • User exit for FB60 after POSTING the Document.

    Hi,
    I have requirement with FB60 transaction where i have to display the error message to the user if the amount of the invoice is greater than some threshold value( this will be maintained in the custom table) to park the document .
    I have created project with enhancement SAPLF051 using the exit EXIT_SAPLF051_002 it is triggering only when parks the document .
    But my requirement is  i need an enhancement which trigger after user posts the document.
    Please help me...
    regards
    paveee.....

    Hi
    Following are the available user exits for fb60 transaction...
    F050S001            FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
    F050S002            FIDCC1: Change IDoc/do not send
    F050S003            FIDCC2: Change IDoc/do not send
    F050S004            FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not sen
    F050S005            FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
    F050S006            FI Outgoing IDoc: Reset Clearing in FI Document
    F050S007            FIDCCH Outbound: Influence on IDoc for Document Change
    F180A001            Balance Sheet Adjustment
    FARC0002            Additional Checks for Archiving MM Vendor Master Data
    FEDI0001            Function Exits for EDI in FI
    RFAVIS01            Customer Exit for Changing Payment Advice Segment Text
    RFEPOS00            Line item display: Checking of selection conditions
    RFKORIEX            Automatic correspondence
    SAPLF051            Workflow for FI (pre-capture, release for payment)
    If you still not find appropriate exit, go for badi's...
    1)To search for a badi, go to se 24 display class cl_exithandler.
    2) double click on method get_instance,
    3) get a break point on case statement. execute and start the required transaction in new session.
    4)look for variable exit_name. It would show the available badi's.
    <b>Please do reward if useful</b>
    Regards
    Dinesh

  • What is the ok code for Save (to post a document)

    Hi all Technos
    How to post a document(Save it) in BDC In Tr Code F-02 after all entry? What is code for that.
    In simple what is the ok code for SAVE. For your kind infromation ENTER is not taking.
    Plz any body help me For that.
    Every usefull answer will be rewarded with points..
    Thanks in advance
    shovan

    Hi Shovan,
    OK-code for save is =BU
    Check this recording..Award points if useful
    perform bdc_dynpro      using 'SAPMF05A' '0100'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BKPF-BLDAT'
                                  '06.05.2008'.
    perform bdc_field       using 'BKPF-BLART'
                                  'SA'.
    perform bdc_field       using 'BKPF-BUKRS'
                                  'BP01'.
    perform bdc_field       using 'BKPF-BUDAT'
                                  '19.05.2008'.
    perform bdc_field       using 'BKPF-MONAT'
                                  '5'.
    perform bdc_field       using 'BKPF-WAERS'
                                  'USD'.
    perform bdc_field       using 'FS006-DOCID'
    perform bdc_field       using 'RF05A-NEWBS'
                                  '40'.
    perform bdc_field       using 'RF05A-NEWKO'
                                  '630020'.
    perform bdc_dynpro      using 'SAPMF05A' '0300'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'BSEG-WRBTR'
                                  '100'.
    perform bdc_field       using 'BSEG-MWSKZ'
                                  'I0'.
    perform bdc_field       using 'BSEG-TXJCD'
                                  'ca0000000'.
    perform bdc_field       using 'DKACB-FMORE'
                                  'X'.
    perform bdc_dynpro      using 'SAPLKACB' '0002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENTE'.
    perform bdc_field       using 'COBL-KOSTL'
                                  '1201'.
    perform bdc_dynpro      using 'SAPMF05A' '0700'.
    perform bdc_field       using 'BDC_OKCODE'
                                  *'=BU'.* 
    Thanks,
    Rvaee..

  • Idoc for change in purchase order document -outbound

    i have a situation, where i need to populate an idoc whenevr a new PO is created or whenevr a existing PO is changed(outbound).
    we can populate IDOC for a new PO using Message control(creating our own function module) but how can we handle the 2nd situation---->populating an IDOC whenever a PO is changed?
    if a Master data is changed, then we can use CHANGE POINTERS concept, but how can i handle the change in Transactional data?

    Hi,
    check the configs and the procedure for ur requiremnt.
    The transaction codes that are required for this method are
    We81
    We30
    We31
    We82
    We21
    We20
    Bd64
    Nace
    Me22n (purchase order), va02 (sales order) etc.
    Ex: purchase order.
    Message type: ORDCHG
    In we20 tcode->outbound parameters->in the message control tab just specify the PROCESS CODE AS ME11 and chek the check box.
    Regards,
    Nagaraj
    Message was edited by:
            nagaraj kumar nishtala

  • IDOC for creation/change of payment terms

    Hi all,
    We have a requirement to send payment terms information to a non SAP system. I am trying to look for a standard IDOC that contains this information how it can be triggered from OBB8.
    If somebody has done it before, please advice. Thanks.
    Regards,
    Nene

    HI nene,
    I think there is no standard idoc to send this. You create an RFC and send to  non sap.
    Regards,
    Madhu.

  • Separate line item for each invoice in payment document

    Dear Experts,
    while making payment for a vendor through F-58 for multiple invoices, the system grouping the invoices on Business Area basis and giving the line items.
    For example there are 2 invoices for 5000 and 6000 in one BA and another 2 for 4000 and 9000 in second BA, the system is generating the entry as follows
    Vendor  A/c Dr   BA1  11000
    Vendor A/c  Dr   BA2  13000
    Bank    A/c  Cr            24000
    I want the system to generate separate line item for each invoice instead of 2. How do i do it?
    But this is not happening when i am making partial payment and in that case it is generating 4 line items.
    regards
    Suresh

    Thanks for the reply
    Checked it but still it is working in the same way.
    It is a requirement for the client, is there anyway to do it?
    Regards
    Suresh

  • OutBound IDOC for Delivery when Post goods issue is trigered

    Hi All
    Does any body have idea which IDOC contains data regarding delivery header and item details.
    for header - sap delivery number , delivery date, ship mode, vessel name, container
    for detail - product code, expiry dt, batch.
    cheers
    AJ

    Hi
    List of IDOC's
    http://www.informatik.fh-wiesbaden.de/~werntges/lv/edi/specs_EN/SAPdoc/IDoc_d.htm
    regards
    pavan

  • Cheque numbers are not completely updated for all payment document

    Hi,
    In the Automatic Payment Program, system is not able to update cheque
    numbers for some of the payment documents which were generated in one
    APP run. This issue, we are facing only in Production Server. APP
    The extraction of Payment details are not possible if the cheque has been
    generated manually. Hence we want the system should update the cheque
    numbers automatically without skipping some of the documents.
    Please look into the issue and revert us.
    Thanks,
    Malathi Reddy.

    hai,
    Goto FCHU and give the doucment number and check number. then sytem will post the cheque number to that document in assignment filed. This will solve your problem.
    FCHU is also one of the process to be done by the user.
    award points.
    govind.

  • SD invoice posted with document type RV ,

    Hi all,
    I try to do incoming payment for SD invoice posted with document type - RV. when i used to do incoming payment by transc code: f-28. An ABAP dun error occurs, stating termination " message type-X".
    Is it possible to do incoming payment for SD invoice from FI. Urgent help needed.
    Regards
    Raj

    Hi,
    Once an Invoice is created in SD, An Accounting document is generated with document type RV. RV Doc. Type shows that the customer is liable to pay the amount.
    While you post the document through f-28, the document type shuld be changed to customer payment.
    It may be one of the reason. So select the docment type customr payment  but not RV and try
    Regards

  • Idoc error in AP posting

    Hi Friends,
    We are doing the intercompany transaction and the org structure is as follows -
                                    Supplying                        Receiving
    Company Code           1000                                2000
    Sales Org                   1000                                2000
    Customer                  1000001
                                    (Internal Customer
                                     Receiving)
    Vendor                                                            2000001 (Vendor - Supplying)
    In the process, we do the intercompany billing from company 1000 to 2000, during the intercompany billing there is not output tax is applicable for the 2000 customer.  However when we post the payable posting in receivng company input tax is applicable as X1(Tax code).
    My questions -
    1.  How the tax codes are going to map in OBCG transaction, as i dont have any output tax -
    2.  When i am creating the billing document, system is showing the following error in inbound idoc for account payable posting
    Formatting error message in the field BSEG-GSBER
    For the above problem, i checked the field status of GL and i made business area field as optional but still the problem is persisiting
    Anticipating a positive response
    Best Regards.,
    Goutham

    what is message number and ID ?

  • FI - Interface triggerring multiple idoc is not getting posted

    Hi all,
    I have a scenerio, where I am receving data from SAP PI, which calls standard idoc ACC_DOCUMENT03 and which posts FI Document.
    now, the problem is interface trigger's 2idoc with seperate number with same message type and same idoc type, but both the idoc are not getting posted and show's error like 'No currency line exists for line item 0000000001' and so on.
    But the same idoc, when i proccess indivisually get's process gets posted successfully.
    I have also done implementation in function module IDOC_INPUT_ACC_DOCUMENT.
    As an abaper, I am not able to understand problem to take corrective steps.
    Thanks & Regards
    shashikant

    hi,
    if the IDoc is stuck in a qRFC queue means that the message did not reach the pipeline to be send to R3 so, anything in wrong at PI side.
    please, go to SMQ2 and check whats happening. to know the queue name check the SXMB_MONI, select the proper message and scroll rightto the proper colum.
    let us know.
    Rodrigo P-.

  • R12 - Void unused payment document number

    Hello,
    We are on rel. 12.1 and have some unused document numbers that want to void for one of our payment documents.
    Or rel. 11.5 we had a Void Unused function on AP that allowed us to do that, but it seems that is gone on rel. 12.1 (or at least, have not found it neither on AP nor CE)
    I have been looking on the documentation but still can not find it.
    Have you used something like that on rel. 12?
    Or is it fine if I just update the last number issued on the Payment Document setup?
    Thanks in advance for your help!

    Metalink article *How To Record Spoiled Checks [ID 1289517.1]* talks about this specific issue. If you find out other way of doing this let us know.
    Thanks,
    Pradeep

Maybe you are looking for

  • Problem with Nokia N73 -- Camera is not working

    Recently i have purched Nokia N73. Some times my camera is not working ,means it's stuck. but after some time or after a day it's working fine. what is the reason ? is there any setting? Plz let me know the same. Wating for your positive reply ASAP.

  • Display html file?

    Hi trying to figure out how to display an HTML file. I am able to display an actual link just fine, but when I try to display an actual file, I get a MalformedURL exception. Any suggestions? Thank You, -Jason Edited by: jfitzpat on Dec 3, 2009 7:52 A

  • Business Graphics: Time Scatter, Line Chart, Column Chart

    Hi all,   I have a requirement of intermixing of Bar/Column-Chart and Line-Chart. How to do this? I also need to color the columns.. Any Documents or Ideas will be appreciated. Thanks,     Vinod V

  • Tutorial on creating a Sparkle effect

    Hi all, I'm trying to create a sparkle effect in which i have a small video on top of the main video.  The small video has a circular matte so it's in the circular shape, and I want the border to have a sparkle effect.. as if it is a star or somethin

  • What options i should choose for Render Multiple frames Simultaneously?

    Installed RAM: 7,98 GB Current RAM Usage: 1,19 GB Allowed RAM Usage: 5,98 GB Process ID Application Name Min Needed Memory Max Usable Memory Max Allowed Memory Current Memory Current Priority 6696 After Effects 0,40 7,98 5,98 1,19 2 - Normal Program: