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

Similar Messages

  • 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 or Func for T-code LT0G

    Hi, everybody,
    Is there any bapi or function module for t-code: LT0G? 
    or anyone can show me how to do it using BDC?(we must generate a TO for every item, one item one TO)

    hello,
    i tried for u r tcode its working fine...
    report ZTEST_12334
           no standard page heading line-size 255.
    include bdcrecx1.
    parameters: dataset(132) lower case.
       DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
      If it is nessesary to change the data section use the rules:
      1.) Each definition of a field exists of two lines
      2.) The first line shows exactly the comment
          '* data element: ' followed with the data element
          which describes the field.
          If you don't have a data element use the
          comment without a data element name
      3.) The second line shows the fieldname of the
          structure, the fieldname must consist of
          a fieldname and optional the character '_' and
          three numbers and the field length in brackets
      4.) Each field must be type C.
    Generated data section with specific formatting - DO NOT CHANGE  ***
    data: begin of record,
    data element:
            LGNUM_001(003),
    data element:
            LOW_002(010),
    data element:
            HIGH_003(010),
    data element:
            LOW_004(003),
    data element:
            P_VBELN_005(001),
    data element:
            P_TAPOS_006(001),
          end of record.
    End generated data section ***
    start-of-selection.
    perform open_dataset using dataset.
    perform open_group.
    do.
    read dataset dataset into record.
    if sy-subrc <> 0. exit. endif.
    perform bdc_dynpro      using 'RLLT0G00' '1000'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'P_TAPOS'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ONLI'.
    perform bdc_field       using 'LGNUM'
                                  record-LGNUM_001.
    perform bdc_field       using 'VBELN-LOW'
                                  record-LOW_002.
    perform bdc_field       using 'VBELN-HIGH'
                                  record-HIGH_003.
    perform bdc_field       using 'BWLVS-LOW'
                                  record-LOW_004.
    perform bdc_field       using 'P_VBELN'
                                  record-P_VBELN_005.
    perform bdc_field       using 'P_TAPOS'
                                  record-P_TAPOS_006.
    perform bdc_transaction using 'LT0G'.
    enddo.
    perform close_group.
    thank u,
    santhosh

  • BAPI for T.cod-MB11 using movement type 631

    Hi Friends,
                     what BAPI can be used for T.code-MB11 with movement type 631. Need your help.
    Regards
    preet

    Hi,
    BAPI_GOODSMVT_CANCEL           Reverse Goods Movements with MB_CANCEL_GOODS_MOVEMENT
    BAPI_GOODSMVT_CREATE           Post goods movements with MB_CREATE_GOODS_MOVEMENT
    BAPI_GOODSMVT_GETDETAIL        Display Details for Material Document
    BAPI_GOODSMVT_GETITEMS         Display Detailed List of Material Documents

  • BAPI/RFC for Service Complaints Creation in CRM 5.0

    Hi,
    We are working on the Complaints and Returns module in CRM 5.0. We have found the Transaction Code for the same. (CRMD_BUS2000120).
    Not able to find the BAPI/RFC for the same.Let us know if any. Appreciate your comments on the same.
    Thanks,
    Moorthy

    Hi,
    Thanks for the response
    I am not talking about Service Order. I have requirement to create a Service Complaint. For that the transaction is CRMD_BUS2000120. Now I need to find the function modules/RFC available for this requirement.
    Hope it clarifies .
    Even I have found function module called -CRM_COMPLAINT_API_CREATE but not sure right one
    Thanks,
    Moorthy

  • 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/RFC for Sales Order or Warehouse Order that retrives VBAK,VBAP,VBEP

    Hi,
       Is there any BAPI/RFC for Sales Order or Warehouse Order that retrives VBAK,VBAP,VBEP and VBPA tables for specified inputs.
       The BAPI or RFC should return the Sales Order details with tables VBAK,VBAP,VBEP and VBPA.
       Rewards if useful.
    Thanks,
    Mich

    Try creating an RFC calling FM: SD_SALES_DOCUMENT_PREFETCH with required details for Header, Item, Schedule and Partners.
    Below code can give you idea in handling the FM.
    PARAMETERS: p_vbeln TYPE vbeln_vl OBLIGATORY.
    CONSTANTS: c_x TYPE char01 VALUE 'X'.
    DATA: st_view TYPE order_view,
          i_vbak_key TYPE TABLE OF sales_key,
          i_vbak TYPE TABLE OF vbak,
          i_vbap TYPE TABLE OF vbapvb,
          i_vbep TYPE TABLE OF vbepvb,
          i_vbpa TYPE TABLE OF vbpavb.
    START-OF-SELECTION.
      MOVE c_x TO : st_view-header,
                    st_view-item,
                    st_view-sdschedule,
                    st_view-partner.
      APPEND p_vbeln TO i_vbak_key.
      CALL FUNCTION 'SD_SALES_DOCUMENT_PREFETCH'
        EXPORTING
          i_sales_view  = st_view
          i_memory_read = 'A'
        TABLES
          i_vbak_keytab = i_vbak_key " List of Sales Orders to extract
          fxvbak        = i_vbak     " Header
          fxvbap        = i_vbap     " Item
          fxvbep        = i_vbep     " Schedule Lines
          fxvbpa        = i_vbpa.    " Partners

  • 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

  • Standard or Customizing Bapi for T-code F-44

    Hi
    I need to clear vendor open invoices using BAPI's for T-code F-44 .I've got through various FM like <b>bapi_acc_document_post</b> and <b>bapi_ar_acc_getbalanceditems</b> but could'nt find solution because this FM's are for customer clearing the open items from table BSAD(cleared accounts of customer).Have any boby worked on this tcode to clear vendor accounts using bapi's or do we have any standard FM to use the scenario same as FM mentioned above for table BSAK(vendor clear items).
    Its really simple working with bdc's to transfer data from flat file to the above transaction.But as known every vendor has huge sets of items and this could be a huge performance issue....so to avoid this in future we need to work on this using exclusively BAPI's......Any suggestions or sample codes wud surely be appreciated....
    Thanks in Advance......

    hi,
    look here
    Re: BAPI for transaction F-03
    <b>Reward points</b>
    Regards

  • Standard BAPI for T-code f-44

    Hi
    I need to clear vendor open invoices using BAPI's for T-code F-44 .I've got through various FM like <b>bapi_acc_document_post</b> and <b>bapi_ar_acc_getbalanceditems</b> but could'nt find solution because this FM's are for customer clearing the open items from table BSAD(cleared accounts of customer).Have any boby worked on this tcode to clear vendor accounts using bapi's or do we have any standard FM to use the scenario same as FM mentioned above for table BSAK(vendor clear items).
    Its really simple working with bdc's to transfer data from flat file to the above transaction.But as known every vendor has huge sets of items and this could be a huge performance issue....so to avoid this in future we need to work on this using exclusively BAPI's......Any suggestions or sample codes wud surely be appreciated....
    Thanks in Advance......

    Thanks for ur response Anji Reddy garu,
    I've tried to check up this given FM but could'nt find it here in my sap system both in QAS and in DEV more  the FM <b>Bapi_payit_post_clearing</b> is also not available here in my sap system what could be the problem it should display this standard FM if available right but its say FM does not exit......Can u do me a favour of forwarding the source code for both the FM's so that i can create a new customizing FM if its fits my requirement.....

  • BAPI for t-code MIR7

    Hi Friends,
    Can anybody help me get the BAPI for t-code MIR7? Also, please provide the code if available.
    Thanks and Regards
    Abinash Kumar

    Hi Amit,
    Can you give me a sample code for BAPI .. if you have any..... Also I need to know what all mandatory data I need to supply to HEADERDATA and  ITEMDATA.
    Thanks and Regards
    Abinash

  • Bapi or FM for T.Code CJIC

    Hi ,
    I need a BAPI or FM For T.Code CJIC to upload the data, for this BDC is not working.
    Pls do the need full.
    Regards,
    Kranthi

    Hi Daniel,
    Please try FM CO_IH_ORDER_GENER_2.
    CALL FUNCTION 'CO_IH_ORDER_GENER_2'
      EXPORTING
        AUART       = RIWO00-AUART
        GEWRK       = VIQMEL-ARBPL
        GEWRK_OBJTY = VIQMEL-CROBJTY
        VIQMEL_I    = VIQMEL
      IMPORTING
        AUFNR       = VIQMEL-AUFNR.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • IDOC/BAPI for T.code PIC01 to uplaod using LSMW

    Hi friends,
    I want to upload the data for T.code PIC01. can any one worked using IDOC/BAPI to uplaod using LSMW.
    Thanks,
    Sivaram.

    What T-code is that PIC01??
    --Ragu

  • BAPI FOR T-CODE PA30

    Hi GURU ,
    Is there any BAPI for T-Code PA30 .
    Please reply me.

    Hi
    Go through This link
    bapi for pa30
    Ranga

  • BAPI for t-code F-43

    Any one can tell me, is there any BAPI for t-code F-43.
    I have a req to create BDC session for t-Code F-43.
    I think instead of BDC,better BAPI.Please anyone knows,tell me.
    Thanks

    thanks for bapi..but in this bapi,there is no field for payee(EMPFB),what it is in t-code f-43.
    So if any other bapi,pls send me
    Thanks in advance

Maybe you are looking for