BAPI or RFC or PROXY

Hi Experts,
I have a scenario where purchase order and goods receipt  info is coming from an external application to XI.
Too update ECC with the same..do i use a bapi/rfc or proxy?
I mean call bapi in the proxy or import bapi directly?..what is the best procedure?
Is it possible to use purchase order IDOC?...
Do we have any BAPI for creating internal order?

Hi Teja,
Find below some of the threads related to that.
[When and Where and how to use Proxies]
[When to use RFC ,Idoc and proxies]
[Re: Proxies Vs. Adapters: When to use Proxy?]
[Use of Proxies(both java and abap)]
Regards,
Venu V
Edited by: Venu V on Jul 27, 2009 2:24 PM

Similar Messages

  • Query on using RFC or proxy

    Hi,
    I  have a scenario which is from SAP to PI to Legacy. The legacy system is giving a wsdl file.And from SAP we have a standard BAPI available. I am thinking of going for a RFC-PI- SOAP scenario. But there are discussions going on to use Proxy. Please let me know which would be the feasible option using RFC or proxy at the sender.IT is a synchronus
    Thanks

    is depends upon the requirement- if u have std bapi of RFc available for the same requirement then go for that and if not then u can create ur custom program to send the data through proxy...proxy will have added advantage of performance..over RFC.
    chirag

  • RFC and PROXY

    Hi all,
    i have a standard bapi which is at receiver side,and i neeed to update the data .it is asynchronous.can i use a RFC adapter or should i use proxy here?
    Regards,
    keerthi

    Hi,
    There are advantages / disadvantages for RFC / Proxies / Idocs.  Some of the differences are:
    RFC and Proxy:
    RFC/BAPI has its own overhead of function call.
    Proxies communicate with the XI server by means of native SOAP calls over HTTP .RFC does not, so you have to convert from SOAP to RFC calls and vice versa. So XML conversion is required.
    ABAP Proxies uses Webservice and Http Protocols.
    If you use ABAP Proxy , you can reduce the overhead calling the function again and again.
    Proxy and Idoc:
    IDOC : After recieving the strucutred data It processes it using a Function Module associated with it.
    Proxy : Proxy is a structure where there is no processing function module associated. You need to explicitly write the Business Logic/Call the subroutines here
    Also go through this urls which may help you:
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    RFC VS PROXY
    /people/ravikumar.allampallam/blog/2005/08/14/choose-the-right-adapter-to-integrate-with-sap-systems
    Re: IDOC and RFC
    Re: Proxy Vs IDOC
    Regards,
    Rajani.

  • What is the diffrence between BAPI and RFC and business object

    Hi Experts,
    Can anybody tel me what is the diffrence between RFC and BAPI , and also what is ther relation with business object?
    Thanx in advance.
    Nilesh Hiwale

    Hi,
    BAPI's are associated with Business Objects and also they are RFC enabled.
    But RFC's are the FM's which can be called from external systems, those FM's can be used in many places based on the applications..
    Check these Links
    whats the difference between BAPI and RFC??
    Diff. Between BAPI and RFC
    Regards
    Kiran

  • Difference between BAPI and RFC?

    Difference between BAPI and RFC?
    also where to use BAPI and where to use RFC?

    Hi,
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    The following standardized BAPIs are provided:
    Reading instances of SAP business objects
    GetList ( )  With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
    The BAPI GetList() is a class method.
    GetDetail()  With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method.  BAPIs that can create, change or delete instances of a business object type
    The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
    Create( ) and CreateFromData! ( ) 
    The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods. 
    Change( ) 
    The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method. 
    Delete( ) and Undelete( )  The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
    The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
    Cancel ( )  Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method. 
    Add<subobject> ( ) and Remove<subobject> ( )  The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
    Regards,
    Prakash

  • BAPI OR RFC FOR CREATION OF MASTER DATA

    Hi
    I want BAPI or RFC for master data creation,(Vendor,Customer,material,Service master)
    Vendor(MK01)
    Customer(XD01)
    Material(MM01)
    Service Master(AC01)
    Pls Help me on this
    Regards
    Rajan

    Hi ,
    For material
    BAPI_MATERIAL_SAVEDATA
    For service
    BAPI_SERVICE_CREATE

  • Difference Between BAPI And RFC in ABAP

    Hi,
    i want to know difference between BAPI and RFC in SAP,
    can we call SAP GUI screen from NON SAP System Using BAPI.
    Reg,
    Hariharan

    Hi Ravishankar,
    The difference is not importat while you understand the concept.
    I think, RFC is the protocol for calling functions from external systems in R/3.
    I understand like BAPI a series of complet functions that SAP offers you for use and model a business use.
    But if I need program a function that can be called for external system i would call it RFC_NAME, because is a unique function that makes a single task.
    In other words, the difference i think is about work idea more than another thing.
    RFC
    A remote function call is a call to a function module running in a system different from the caller's. The remote function can also be called from within the same system (as a remote call).
    RFC consists of two interfaces : A calling interface for ABAP Programs and a calling interface for Non-SAP programs.
    The RFC Interface takes care of :-
    - Converting all parameter data to the representation needed in the remote system
    Calling the communication routines needed to talk to the remote system.
    Handling communications errors, and notifying the caller, if desired ( using EXCEPTIONS paramater of the CALL FUNCTION).
    BAPI
    BAPIs are standardized programming interfaces (methods) enabling external applications to access business processes and data in the R/3 System.
    BAPIs provide stable and standardized methods to achieve seamless integration between the R/3 System and external applications, legacy systems and add-ons.
    BAPIs are defined in the BOR(Business object repository) as methods of SAP business object types that carry out specific business functions.
    BAPIs are implemented as RFC-enabled function modules and are created in the Function Builder of the ABAP Workbench.
    The most critical difference btwn BAPI and FM is that BAPI can be wrapped in Business objects whereas RFC cant.
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    The following standardized BAPIs are provided:
    Reading instances of SAP business objects
    GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
    The BAPI GetList() is a class method.
    GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
    The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
    Create( ) and CreateFromData! ( )
    The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
    Change( )
    The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
    Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
    The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
    Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
    Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
    Check these Links out
    http://searchsap.techtarget.com/ateQuestionNResponse/0,289625,sid21_cid558752_tax293481,00.html
    http://www.sap-img.com/abap/interview-question-on-bapi-rfc-abap-objects-tables.htm
    http://www.sap-img.com/fu033.htm
    http://www.sap-img.com/abap/ale-bapi.htm
    Refer following SDN threads:
    Diff. Between BAPI and RFC
    Re: BAPI and RFC
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • Which is better for bulk message scenario in sap xi RFC or Proxy

    which is better for bulk message scenario in ( RFC or Proxy ) ?
    Edited by: prabhatxi on Aug 6, 2010 4:44 PM

    Proxy will alwaays be better option in this case, as it is adapter less framework, and communication happens directly with XI central integration engine. So it is always fast communication and gives good performance.
    But still you should consider other factors, you may consider using RFC as well, as sometime we go for RFC/IDOC as this are the standard interfaces already available rather than creating structure...
    May be you can share more info on what type/volume data are you planning to send via XI?
    Hope this cleart your doubt..
    Divyesh

  • Third party system call function module/BAPI through RFC to update Z table

    Dear Friends,
    We have a third party system which directly inserts a Z table in SAP through its programming, which is an auditing issue.
    We want the third party system should call function module/BAPI through RFC so that the Z table gets updated.
    waiting for inputs..
    Thanks,
    Kumar

    if third party system is capable of making Remote Function call, then writing a Function module & making it remote enable is not difficult task in ABAP.
    You may have to prepare specifications first to decide if third party system is going to Read, insert, update, delete records from Zee table.

  • Implemanting Rosettanet PIP 3A4 using BAPI's / RFC's

    Has anyone implemented RosettaNet 3A4 scenario in a productive environment with XI using BAPI's / RFC's?
    We are looking to build B2B using Rosettanet 3A4 but having a hard time finding success stories. Any help would be greatly appreciated!
    Alon

    Hi Alon
    where do u work in israel?

  • COR2 (Change Process Order) Upload & Data Change Using BAPI OR RFC

    Dear Experts,
                       I want to change the Transaction cor2(Change Process Order) material 1st line quantity, after that i have to upload records from line 2. I have all the data in itab. Will you people please have a suggestion to change and Upload data at the same time in a single program using some BAPI or RFC.
    Which BAPI or RFC will be helpfull in this regards.
    Thanks,
    Sohail

    I have done it through BDC recording, change on first line, then upload using bdc from 2nd line.

  • Difference betrween BAPI and RFC

    Hi All
              Can anyone tell me the difference between BAPI and RFC.
    I am unable to find it out ,except one,ie  BAPI is based on object oriented concept .
    please justify your answers with real scenerios.

    Remote Function Call:
    RFC is an SAP interface protocol. Based on CPI-C, it considerably simplifies the programming of communication processes between systems.
    RFCs enable you to call and execute predefined functions in a remote system - or even in the same system.
    RFCs manage the communication process, parameter transfer and error handling.
    http://help.sap.com/saphelp_47x200/helpdata/en/22/042860488911d189490000e829fbbd/frameset.htm.
    BAPI
    BAPI stands for Business API(Application Program Interface).
    A BAPI is remotely enabled function module
    ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
    You can make your function module remotely enabled in attributes of Function module but
    A BAPI are standard SAP function modules provided by SAP for remote access.
    Also they are part of Businees Objest Repository(BOR).
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects.
    You create business objects and those are then registered in your BOR (Business Object Repository)
    which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA.
    In this case u only specify the business object and its method from external system
    in BAPI there is no direct system call. while RFC are direct system call.
    Some BAPIs provide basic functions and can be used for most SAP business object types.
    These BAPIs should be implemented the same for all business object types.
    Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs.
    Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
    Difference Between BAPI and RFC
    What is the main difference between BAPI and RFC and difference between BAPI and BDC?
    BAPI is used only when it is available for the particular transaction like Delivery Sales order. but BDC can be used for any
    transaction which have screen and fields.
    BAPI is directly updated the database instead BDC run through the screen flow.
    So BAPI can't handle all the flow logic checking and enhancement put by programmer to faciliate the user requirement.
    Difference between BAPI and BDC:
    BAPI is a higher end usage for tranfering the data from SAP to non-SAP and vice-versa. for ex: if we are using VB application,where in that we want to connect to SAP and retireve the data,and then change and update the data in SAP for that purpose we can use that.
    Apart from that, we can also use it for Uploading/Downloading the data from SAP to Non-SAP like BDC, provided we have an existing BAPI for that.
    BAPI function modules will also do all the checks required for data integrity like Transactions for BDC.
    There is one more advantage using BAPI instead of BDC. When we go for upgradation, there might be pozzibility to change the screen elements for transactions depending on the requirement. In that case,our BDC pgm may or may not work (depending on the screen changes they have made). Unless and until we prepare new BDC we cant use the old BDC pgm. But in BAPI, SAP promises that they are going to keep the old BAPI and for new functionality they will provide an upgraded BAPI. Until we write a new BAPI pgm, we can use the exisitng BAPI pgm.
    BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA.
    In this case you only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI. It is not possible to connect SAP to Non-SAP systems to retrieve data using RFC alone. RFC can acces the SAP from outside only through BAPI and same is for vice versa access.
    RFC is the protocol used by SAP for remote communication, that is, for communications between remote (independent) systems. RFC is used for communications between two independent SAP systems, or for communications between an SAP system and a non-SAP system, such as an external application. It can also be used for communications between modules on the same system. Using the RFC interfaces you can extend the functionality of R/3 applications from an external program.
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    list of all bapis
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    for BAPI's
    http://www.sappoint.com/abap/bapiintro.pdf
    http://www.sappoint.com/abap/bapiprg.pdf
    http://www.sappoint.com/abap/bapiactx.pdf
    http://www.sappoint.com/abap/bapilst.pdf
    http://www.sappoint.com/abap/bapiexer.pdf
    http://service.sap.com/ale
    http://service.sap.com/bapi
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
    http://www.planetsap.com/Bapi_main_page.htm
    http://www.topxml.com/sap/sap_idoc_xml.asp
    http://www.sapdevelopment.co.uk/
    http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
    also refer these threads
    What is the difference between RFC and BAPI?.
    whats difference between rfc and bapi?
    difference between rfc & bapi
    difference between RFC and BAPi
    Difference between BAPI and RFC?
    also chk this
    http://www.sap-img.com/abap/interview-question-on-bapi-rfc-abap-objects-tables.htm
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • "MAPPING" EXCEPTION_DURING_EXECUTE in scenario RFC TO PROXY

    Hello all
    I  am facing  a problem in a RFC PROXY SCENARIO and I don´t whether I can solve it .
    System A : R3
    System B : XI
    And my scenario is RFC TO PROXY. 
    i will implement the proxy in the ABAP  XI . For now I have entered no code.
    I have mapped an rfc from r3 to my data type . My message mapping , Interface maping works very well .
    When I start the program in R3 . I got the following error in the trace of sxmb_moni
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_MM_MAT_</SAP:P1>
      <SAP:P2>java.lang.NullPointerException</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>java.lang.NullPointerException thrown during application mapping com/sap/xi/tf/_MM_MAT_:</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    How can make this scenario working ?

    Stan,
    Follow the steps below:
    1. Take the source XML message from SXI_MONI
    2. Save the xml message into your desktop.
    3. Log into Integration Repository and open the concerned mapping object.
    4. Go to test tab and upload this xml at the source side.
    5. see whether everything is green at source message type.
    6. execute
    7. you will find the error in the log immediately after executing
    see for the error and take appropriate action.
    Best Regards,
    Kiran Bobbala

  • BAPI: bapi or RFC for t-code f-28

    Hi all,
            can any one tell me bapi or rfc available for t-code f-28
           please help me...
    Regards,
    devika G.

    Hi,
    i dont think there is a BAPI for this Transaction...
    you can do  BDC on F-28
    FORM fill_bdc_data_f-28_9005 USING p_i_mult_doc TYPE c.
    **BDC from screen 9005
    DATA : l_amt_bdc(13), l_amt_bdc_remain(13), l_amt_bdc_mult(13),
    l_amt_bdc_mult_remain(13), l_assignment(14), l_period(2),
    l_amount(13).
    CLEAR t_bdcdata.
    REFRESH t_bdcdata.
    PERFORM bdc_dynpro USING 'SAPMF05A' '0103'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=AB'. "OK CODE - doc overview
    **get user default date format and pass date in that format
    PERFORM convert_date_to_user_format USING bkpf-bldat.
    PERFORM bdc_field USING 'BKPF-BLDAT' w_date. "cheque date
    CLEAR w_date.
    PERFORM bdc_field USING 'BKPF-BLART' i_blart. "doc type
    PERFORM bdc_field USING 'BKPF-BUKRS' i_bukrs. "comp code
    **get user default date format and pass date in that format
    PERFORM convert_date_to_user_format USING bkpf-budat.
    PERFORM bdc_field USING 'BKPF-BUDAT' w_date. "posting date
    CLEAR w_date.
    l_period = sy-datum+4(2).
    PERFORM bdc_field USING 'BKPF-MONAT' l_period. "period
    PERFORM bdc_field USING 'BKPF-WAERS' 'INR'. "currency
    PERFORM bdc_field USING 'BKPF-BKTXT' i_bankl. "doc. hdr. text
    PERFORM bdc_field USING 'BKPF-XBLNR' i_xblnr. "Ref. Document No.
    PERFORM bdc_field USING 'BSEG-ZUONR' i_zuonr. "Assignment(Depot Code)
    PERFORM bdc_field USING 'RF05A-KONTO' i_bank_gl. "Bank GL acc
    PERFORM bdc_field USING 'BSEG-GSBER' i_gsber. "Business Area
    l_amount = bseg-wrbtr.
    PERFORM bdc_field USING 'BSEG-WRBTR' l_amount. "Amount
    PERFORM bdc_field USING 'BSEG-PRCTR' ''. "Profit Center
    **open items data
    PERFORM bdc_field USING 'RF05A-AGKOA' 'D'. "Acc type (D=customers)
    PERFORM bdc_field USING 'RF05A-XNOPS' 'X'. "Std OIs check box
    **end of first screen
    **document overview screen
    PERFORM bdc_dynpro USING 'SAPMF05A' '0700'. "Overview Screen
    PERFORM bdc_field USING 'BDC_CURSOR' 'RF05A-AZEI1(01)'. "cursor
    PERFORM bdc_field USING 'BDC_OKCODE' '/00'. "OK CODE
    PERFORM bdc_field USING 'RF05A-NEWBS' '19'. "posting key
    PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
    PERFORM bdc_field USING 'RF05A-NEWUM' 'B'. "Spl GL Indicator
    **for single document selected
    CLEAR l_amt_bdc.
    IF p_i_mult_doc = ''.
    ***new screen - next line item
    PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE
    **for single document, use the bouncing amount calculated earlier
    l_amt_bdc = w_amt_ant_bouncing.
    PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc. "amount
    **due date - same as posting date on screen
    **get user default date format and pass date in that format
    PERFORM convert_date_to_user_format USING bkpf-budat.
    PERFORM bdc_field USING 'BSEG-ZFBDT' w_date. "due date
    CLEAR w_date.
    **assignment
    CLEAR l_assignment.
    CONCATENATE t_seldoc_ant_bouncing-belnr
    t_seldoc_ant_bouncing-gjahr INTO l_assignment.
    PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
    PERFORM bdc_field USING 'BSEG-GSBER' i_gsber.
    **if there is some remaining amount, then go for another line item
    IF w_rem_amt_ant_bouncing > 0.
    PERFORM bdc_field USING 'RF05A-NEWBS' '15'. "posting key
    PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
    **new screen
    PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
    PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-ZTERM'. "CURSOR
    PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE-ENTER
    l_amt_bdc_remain = w_rem_amt_ant_bouncing.
    PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
    PERFORM bdc_field USING 'BSEG-ZTERM' '0001'.
    **AGAIN
    PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
    PERFORM bdc_field USING 'BDC_CURSOR' 'BSEG-WRBTR'. "CURSOR
    PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE-SAVE
    PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_remain.
    PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term -hardcoded
    PERFORM bdc_field USING 'BSEG-SKFBT' l_amt_bdc_remain.
    ENDIF.
    **multiple documents
    ELSE.
    **initialize remaining amount to amt entered on screen
    l_amt_bdc_mult_remain = bseg-wrbtr.
    LOOP AT t_seldoc_ant_bouncing.
    IF l_amt_bdc_mult_remain > 0.
    IF bseg-wrbtr > t_seldoc_ant_bouncing-rem_amt.
    l_amt_bdc_mult = t_seldoc_ant_bouncing-rem_amt.
    ELSE.
    l_amt_bdc_mult = bseg-wrbtr.
    ENDIF.
    **remaining amt = screen amt - amt calculated above.
    l_amt_bdc_mult_remain = l_amt_bdc_mult_remain - l_amt_bdc_mult.
    PERFORM bdc_dynpro USING 'SAPMF05A' '0303'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE
    PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult. "amount
    PERFORM bdc_field USING 'BSEG-GSBER' i_gsber. "Business Area
    **due date - same as posting date on screen
    **get user default date format and pass date in that format
    PERFORM convert_date_to_user_format USING bkpf-budat.
    PERFORM bdc_field USING 'BSEG-ZFBDT' w_date. "due date
    CLEAR w_date.
    **assignment
    CLEAR l_assignment.
    CONCATENATE t_seldoc_ant_bouncing-belnr
    t_seldoc_ant_bouncing-gjahr INTO l_assignment.
    PERFORM bdc_field USING 'BSEG-ZUONR' l_assignment. "assignment
    **posting key 19 for all but last document
    PERFORM bdc_field USING 'RF05A-NEWBS' '19'. "posting key
    PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
    PERFORM bdc_field USING 'RF05A-NEWUM' 'B'. "Spl GL
    ENDIF.
    ENDLOOP.
    ENDIF.
    **post remaining amount
    IF p_i_mult_doc = 'X'.
    **new screen if there is some amount left
    IF l_amt_bdc_mult_remain > 0.
    **posting key 15 with remaining amount
    PERFORM bdc_field USING 'RF05A-NEWBS' '15'. "posting key
    PERFORM bdc_field USING 'RF05A-NEWKO' i_kunnr. "customer
    PERFORM bdc_field USING 'RF05A-NEWUM' ''. "Spl GL
    **new screen
    PERFORM bdc_dynpro USING 'SAPMF05A' '0301'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=BU'. "OK CODE
    PERFORM bdc_field USING 'BSEG-WRBTR' l_amt_bdc_mult_remain.
    PERFORM bdc_field USING 'BSEG-ZTERM' '0001'. "pmt term - hardcoded
    ELSE.
    **if no amount is left, no need for a further line item
    PERFORM bdc_field USING 'RF05A-NEWBS' ''. "posting key
    PERFORM bdc_field USING 'RF05A-NEWKO' ''. "customer
    PERFORM bdc_field USING 'RF05A-NEWUM' ''. "Spl GL
    ENDIF.
    ENDIF.
    **clear variables
    CLEAR : l_amount, l_assignment, l_amt_bdc,
    l_amt_bdc_remain,l_amt_bdc_mult, l_amt_bdc_mult_remain.
    ENDFORM. " fill_bdc_data_F-28_9005
    Regards

  • BAPI or RFC  FOR T-CODE F-32

    hi all,
            can any one help please..
           i am searching for a bapi or RFC for t-code f-32..please help me if any one know about this.
    regards,
    devi....

    hi all,
            can any one help please..
           i am searching for a bapi or RFC for t-code f-32..please help me if any one know about this.
    regards,
    devi....

Maybe you are looking for

  • Why won't my computers talk to each other?

    I have the following in my home: Intel iMac (10.6.4) MacBook (10.5) 2 ea Mac Minis (10.6.4) Time Capsule My iMac can see and connect to the MacBook and one of the Mac Minis. The MacBook can see and connect to the iMac and one of the Mac Minis. The Ma

  • Rteport

    plz write code this object Developed an interactive report that displays the sales order information, like sales order no, sold to party and delivery status. The detailed list gives item data and   item delivery.

  • Windows DNS - Active Directory record Load Failed

    Hello guys,  I'm in an environment with Windows Server 2012 R2 that have ADDS and DNS services deployed, have received event ID 4010 is as follows:  Event ID: 4010  Event Source: DNS  Event Log: DNS Server  Event Description: The DNS server was unabl

  • Migration BO XI R2 to R3.1

    Can you please let me know the migration procedure from BO R2 to R3.1 . (send if any PDF or links available).  Need the different releases or versions of R2.

  • Migration from 8i to 9i/10g

    Hi , I am current using Oracle 8i, is the migration to 9iR2 or 10g free? Do i need to pay to upgrade to the newer database? Am currently using 817 Enterprise Edition. Thanks in advance.