Bapi or Rfc

hi
  i need a BAPI or RFC that is available for the particular TX.MBE1...
plz its urgent...

Hi
There is no transaction with tcode MBE1 or MB1E!
it might be something like MB1A,MB1B,MB1C or MB11
Use the BAPI
BAPI_GOODSMVT_CREATE
Regards
Anji

Similar Messages

  • 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

  • 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>

  • 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....

  • Bapi ro RFC to Convert sto planed order to purchase requisiton (urgent)

    hi experts ,
    please help :
    give me some advice
    bapi ro RFC  Convert sto planed order to purchase requisition

    Use can try the code in SAP program - <b>SAPMM06W</b> for Bapi_requirement_create
    You can also try using  BApi :   <b>BAPI_PR_CREATE</b>
    <b>Sample program:</b>
    <b>Reward points, if of some help</b>
    FUNCTION Z_NPIP_PR_CREATE .
    ""Local Interface:
    *"  EXPORTING
    *"     VALUE(NUMBER) LIKE  BAPIMEREQHEADER-PREQ_NO
    *"  TABLES
    *"      PRITEM STRUCTURE  BAPIMEREQITEMIMP
    *"      PRHEADERTEXT STRUCTURE  BAPIMEREQHEADTEXT OPTIONAL
    *"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
    DATA : S_HEADER LIKE BAPIMEREQHEADER OCCURS 0 WITH HEADER LINE.
             S_HEADER-PR_TYPE = 'NB'.
            S_HEADER-CTRL_IND = 'X'.
            S_HEADER-GENERAL_RELEASE = 'X'.
            S_HEADER-CREATE_IND = 'X'.
            S_HEADER-ITEM_INTVL = 0000.
            S_HEADER-LAST_ITEM = 0000.
            S_HEADER-AUTO_SOURCE = 'X'.
            S_HEADER-MEMORY = 'X'.
             APPEND S_HEADER.
    DATA : S_HEADERX LIKE BAPIMEREQHEADERX OCCURS 0 WITH HEADER LINE.
             S_HEADERX-PR_TYPE = 'X'.
            S_HEADER-CTRL_IND = 'X'.
            S_HEADER-GENERAL_RELEASE = 'X'.
            S_HEADER-CREATE_IND = 'X'.
            S_HEADER-ITEM_INTVL = 'X'.
            S_HEADER-LAST_ITEM = 'X'.
            S_HEADER-AUTO_SOURCE = 'X'.
            S_HEADER-MEMORY = 'X'.
             APPEND S_HEADERX.
    DATA : S_ITEMX LIKE BAPIMEREQITEMX OCCURS 0 WITH HEADER LINE.
            S_ITEMX-MATERIAL = 'X'.
            S_ITEMX-PLANT = 'X'.
            S_ITEMX-QUANTITY = 'X'.
            S_ITEMX-DELIV_DATE = 'X'.
            APPEND S_ITEMX.
    DATA : S_ITEMEXP LIKE BAPIMEREQITEM OCCURS 0 WITH HEADER LINE.
             S_ITEMEXP-DOC_TYPE = 'NB'.
             APPEND S_ITEMEXP.
    CALL FUNCTION 'BAPI_PR_CREATE'
    EXPORTING
        PRHEADER                    = S_HEADER
        PRHEADERX                   = S_HEADERX
      VERSIONS                    =
      TESTRUN                     =
    IMPORTING
        NUMBER                      = NUMBER
      PRHEADEREXP                 =
    TABLES
        RETURN                      = RETURN
        PRITEM                      = PRITEM
        PRITEMX                     = S_ITEMX
        PRITEMEXP                   = S_ITEMEXP
      PRITEMSOURCE                =
      PRACCOUNT                   =
      PRACCOUNTPROITSEGMENT       =
      PRACCOUNTX                  =
      PRADDRDELIVERY              =
      PRITEMTEXT                  =
        PRHEADERTEXT                = PRHEADERTEXT
      EXTENSIONIN                 =
      EXTENSIONOUT                =
      PRVERSION                   =
      PRVERSIONX                  =
      ALLVERSIONS                 =
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
    ENDFUNCTION.
    Message was edited by:
            Ramanujan Chitrakootam

  • Is ther a BAPI or RFC that can read any table ?

    I want to read 35 tables in SAP database. Is ther a BAPI or RFC that can read any table ?
    If I use RFC to read these tables, I will write a lot of codes. It may be a large work.

    Check these FM
    RFC_READ_TABLE
    RFC_GET_TABLE_ENTRIES

  • BAPI: Any bapi or RFC for 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 Ganesa,
    Kindly go through this. I think it will clear you.
    Pattern in which function modules are called
    The function module fi_document_process is called 4 times and finally document_post is called once which updates the tables.
    Step 1. Call FI_DOCUMENT_PROCESS
    Import Parameters
    I_GJAHR LIKE TRWCA- YEAR
    I_PROCESS LIKE TRWPR-PROCESS
    I_EVENT LIKE TRWPR-EVENT
    Tables
    T_BKPF LIKE BKPF
    T_BSEG LIKE BSEG
    T_BSEGZ LIKE BSEGZ
    T_ACCIT_EXT LIKE ACCIT_EXTENSION
    Values to populate import parameters
    i_gjahr = '2007' “Fiscal year from the screen
    i_process = 'BELEG' “Constant, can be hard coded
    i_event = 'CRBSEGZ' “Constant, can be hard coded
    xbkpf-bukrs '1000'. “ Company code from the screen
    xbkpf-belnr '$1'. “ constant , can be hard coded
    xbkpf-gjahr '2007'. “ Fiscal Year , from the screen
    xbkpf-blart 'DZ'. “ Can be obtained from the invoice document
    xbkpf-bldat '20070116'. “ Document Date, from the screen
    xbkpf-budat ’20070118'. “ Posting Date , from the screen
    xbkpf-monat '01'. “ constant , can be hard coded
    xbkpf-wwert '20070118'. “ posting Date
    xbkpf-usnam 'SAPUSER'. “ user name
    xbkpf-tcode 'FBZ1'. “ Constant, can be hard coded
    xbkpf-waers 'EUR'. “ currency, from the screen
    xbkpf-glvor 'RFBU'. “ constant can be hard coded
    xbkpf-awtyp 'BKPF'. “ constant, can be hard coded
    xbkpf-fikrs ’1000'. “ customer account number, from the screen
    xbkpf-hwaer 'EUR'. “ Currency, from the screen
    xbkpf-awsys 'ECCCLNT800'. „can be hard coded
    xbseg Record 1
    xbseg-bukrs '1000'. “ Company code from the screen
    xbseg-belnr '$1' . “ constant , can be hard coded
    xbseg-gjahr '2007'. „ Fiscal Year, from the screen
    xbseg-buzei ’001'. “ constant , can be hard coded
    xbseg-bschl '40'. “ constant , can be hard coded
    xbseg-koart 'S'. “ constant , can be hard coded
    xbseg-shkzg 'S' . “ constant , can be hard coded
    xbseg-dmbtr '10'. „ Amount, from the screen
    xbseg-wrbtr '10'. „ Amount, from the screen
    xbseg-pswbt ’10'. „ Amount, from the screen
    xbseg-pswsl 'EUR'. „ Currency, from the screen
    xbseg-valut ’20070118'. “ Posting date, from the screen
    xbseg-altkt '0000110100'.
    xbseg-vorgn 'RFBU'. “ constant , can be hard coded
    xbseg-fdlev 'B9'. “ constant , can be hard coded
    xbseg-fdwbt '10'. „ Amount, from the screen
    xbseg-fdtag '20070118'. “ Posting date, from the screen
    xbseg-kokrs ’1000'. “ Customer account
    xbseg-xkres 'X'. “ constant , can be hard coded
    xbseg-xopvw 'X'. “ constant , can be hard coded
    xbseg-hkont '0000110009'. “ Bank Account number
    xbseg-xbilk 'X'. “ constant , can be hard coded
    xbseg-fipos '9620'. “ constant , can be hard coded
    xbseg-lokkt '0000110009'. “ Bank Account number
    xbseg Record 2.
    bseg-bukrs '1000'. “ Company code from the screen
    bseg-belnr. '$1' “ constant , can be hard coded
    bseg-gjahr. '2007' “ Fiscal year from the screen
    bseg-augbl. '*' “ constant , can be hard coded
    bseg-buzei'002'. “ constant , can be hard coded
    bseg-bschl. '15' “ constant , can be hard coded
    bseg-koart. 'D' “ constant , can be hard coded
    bseg-shkzg. 'H' “ constant , can be hard coded
    bseg-dmbtr. '10' “Amount, from the screen
    bseg-wrbtr. '10' “Amount, from the screen
    bseg-pswbt. '10' “Amount, from the screen
    bseg-pswsl. 'EUR' “ currency, from the screen
    bseg-altkt. '0000120100'
    bseg-vorgn. 'RFBU' “ constant , can be hard coded
    bseg-kokrs. '1000' “ Customer account number
    bseg-xkres. 'X' “ constant , can be hard coded
    bseg-xopvw. 'X' “ constant , can be hard coded
    bseg-hkont. '0000140000'
    bseg-xbilk. 'X' “ constant , can be hard coded
    bseg-fipos. '9620' “ constant , can be hard coded
    bseg-lokkt. '0000140000'
    bseg-nebtr. '10' “ Amount, from the screen
    bseg-xauto. 'X' “ constant , can be hard coded
    bseg-xzahl. 'X' “ constant , can be hard coded
    bseg-saknr. '0000140000'
    bseg-zfbdt. '20070116'” Invoice document date
    bseg-hwmet. 'A' “ constant , can be hard coded
    bseg-kkber. '1000' “ Customer account number
    bseg-agzei. '1' “ constant , can be hard coded
    Step 2. Call FI_DOCUMENT_PROCESS
    Import Parameters
    I_GJAHR LIKE TRWCA- YEAR
    I_PROCESS LIKE TRWPR-PROCESS
    I_EVENT LIKE TRWPR-EVENT
    Tables
    T_BKPF LIKE BKPF
    T_BSEG LIKE BSEG
    T_BSEGZ LIKE BSEGZ
    T_AUSZ3 LIKE AUSZ_CLR
    T_AUSZ4 LIKE AUSZ_CLR_ASGMT
    T_ACCIT_EXT LIKE ACCIT_EXTENSION
    Values to populate import parameters
    i_gjahr = '2007' “Fiscal year from the screen
    i_process = 'BELEG' “Constant, can be hard coded
    i_event = 'CLOSE' “Constant, can be hard coded
    Table xausz3.
    ausz3-agzei. '1' “Constant, can be hard coded
    ausz3-waers. 'EUR' „ Currency from the screen
    ausz3-bukrs. '1000' „ Company Code
    ausz3-belnr. '1800000076' „ Document number from the screen
    ausz3-gjahr. '2007' „ Fiscal Year
    ausz3-buzei. '001'
    ausz3-shkzg. 'S' “Constant, can be hard coded
    ausz3-dmbtr. '10' “ Amount, from the screen
    ausz3-wrbtr. '10' “ Amount, from the screen
    ausz3-koart. 'D' “Constant, can be hard coded
    Step 3. Call FI_DOCUMENT_PROCESS
    Import Parameters
    I_GJAHR LIKE TRWCA- YEAR
    I_PROCESS LIKE TRWPR-PROCESS
    I_EVENT LIKE TRWPR-EVENT
    Tables
    T_BKPF LIKE BKPF
    T_BSEG LIKE BSEG
    T_BSEGZ LIKE BSEGZ
    T_AUSZ3 LIKE AUSZ_CLR
    T_AUSZ4 LIKE AUSZ_CLR_ASGMT
    T_ACCIT_EXT LIKE ACCIT_EXTENSION
    Values to populate import parameters
    i_gjahr = '2007' “Fiscal year from the screen
    i_process = 'BELEG' “Constant, can be hard coded
    i_event = 'PROJECT' “Constant, can be hard coded
    I_AUGLV = 'EINGZAHL' “Constant, can be hard coded
    Step 4. Call POST_DOCUMENT
    Import Parameters
    I_BKDF LIKE BKDF
    I_UF05A LIKE UF05A
    I_GENER LIKE T020-GENER
    I_AUGLV LIKE T041A-AUGLV
    Tables
    T_AUSZ1 LIKE AUSZ1
    T_AUSZ2 LIKE AUSZ2
    T_AUSZ3 LIKE AUSZ_CLR
    T_AUSZ4 LIKE AUSZ_CLR_ASGMT
    T_BKP1 LIKE BKP1
    T_BKPF LIKE BKPF
    T_BSEC LIKE BSEC
    T_BSED LIKE BSED
    T_BSEG LIKE BSEG
    T_BSET LIKE BSET
    T_BSEU LIKE BSEU
    Values to populate import parameters
    Table xausz1
    xausz1-belnr. '1800000076' „ Document number from the screen
    xausz1-bukrs. '1000' „ Company code from the screen
    xausz1-gjahr. '2007' „ Fiscal year from the screen
    xausz1-buzei. '001' “ Constant , can be hard coded
    Table xausz2
    ausz2-bukrs. '1000' „ Company code from the screen
    ausz2-aktio. 'A' “ Constant , can be hard coded
    ausz2-augbl. '1400000054' „ Posted document number..from the function NUMBER_GET_NEXT(Dynamically generated unique number)
    ausz2-augdt. '20070118' „ Posting Date from the screen
    ausz2-auggj. '2007' „ Fiscal Year from the screen
    Table xbkpf
    First record of the internal table zbkpf has to be modified with the dynamically generated document number.
    Xbkpf-belnr. ‘1400000054’
    Table xbkp1
    xbkp1-currj '2007' “ Fiscal year, from the screen
    Table xbseg
    Following fields in the table xbseg has to be modified before passing to this function module.
    Record 1
    TO wa_bseg1-belnr. '1400000054' “ Dynamically generated number
    TO wa_bseg1-zuonr. '20070116' “ Document Date from the screen
    Record 2
    bseg1-belnr. '1400000054' „ Dynamically generated number
    bseg1-augdt. '20070118' „ Posting date from the screen
    bseg1-augcp. '20070118' „ Posting date from the screen
    bseg1-augbl. '1400000054' „ Dynamically generated number
    bseg1-zuonr. '14000000542007' „ Concatenating dynamically generated number and fiscal year
    bseg1-kunnr. '1000' “ Customer number from the screen
    Table Xbseu
    Record 1
    bseu-waers 'EUR' “ Currency from the screen
    Record 2
    bseu-waers. 'EUR' “ Currency from the screen
    bseu-xzver. 'X' “ Constant Hard coded
    Step 5. Call FI_DOCUMENT_PROCESS
    Import parameters
    I_GJAHR LIKE TRWCA-TOYEAR
    I_PROCESS LIKE TRWPR-PROCESS
    I_EVENT LIKE TRWPR-EVENT
    I_AWTYP LIKE ACCHD-AWTYP
    I_AWREF LIKE ACCHD-AWREF
    I_AWORG LIKE ACCHD-AWORG
    I_AWSYS LIKE ACCHD-AWSYS
    Tables
    T_BKPF LIKE BKPF
    Values to populate import parameters
    i_gjahr = '2007' “ Fiscal Year from the screen
    i_process = 'BELEG' “ Constant
    i_event = 'POST' “ Constant
    i_awtyp = 'BKPF' “ Constant
    i_awref = '1400000054'”Dynamically generated posting doc number
    i_aworg = '10002007' “ Concatenate comp code and Fiscal Year
    i_awsys = 'ECCCLNT800'” Constant.

  • BAPI or RFC for item level updation in BOM

    Hi ,
    I need to mass update the operation lead time offset in all the items in the BOM.
    First i am downloading the BOM components and its existign operation lead time offset in the form of excel file. Then i am modifying the excel file and the same is uploaded to update the operation lead time offset.
    I need a BAPI or RFC to update the item level details in the BOM. Please help.
    Thanks
    S.Srinivasan

    Hi,
    Please refer the below thread to find BAPI
    How to find related BAPIs
    You can also use tcode BAPI
    Message was edited by:
            Kannan S

  • BAPI or RFC for Automatic Forwarding

    Hallo.
    When I create a user, I set the automatic forwarding from the SAP inbox username to mail.
    I make this setting using SO36.
    Is there a Bapi or RFC to make this?
    Thanks for your help.
    Mario
    Any news about my issue?
    Thanks.

    Hi,
    Please check this link.
    [Link|Send notification to Lotus Notes when a WI is created;

Maybe you are looking for

  • A new wi fi phone with dual sim and large touch sc...

    Hey i was thinking as nokia has started taking out dual sim phones why not now not also put wifi in it and also a large touch screen phone for people to enjoy videos in it. this would be great for people who carry two phones and nokia would then be t

  • Sync issue with Outlook 2010

    Hi, Not sure if this would be the correct place for this, but here is my issue We have a client with Exchange 2010, and Outlook 2010 and they seem to be getting sync issues. the error that comes up is 10:58:52 Synchronizer Version 14.0.6117 10:58:52

  • SAP Retail - Flow-through vs putaway quantities

    Hi! My customer receives in his DC and ships same day 80% of his units, using a "flow-through merch driven" type process (for which we need a lean WM warehouse).  The other 20% goes in putaway stock (for which we need a full WM warehouse) for future

  • How to create a divert "profile" in E65?

    Hi, Does anyone know how to program a profile into an E65 so that when you want to divert your phone you don't have to go theough the whole process each time? thanks, Aoife

  • How to create custom GUI interface for Cisco router?

                       Hello, I am working on a Cisco solution and I have my router configured for the solution I need. However, if a non-cisco person needs to use my solution then I think he will need a GUI interface which will have few "buttons" which