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.

Similar Messages

  • 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 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 RFC for replicate the transaction LX03

    Hi experts,
    anyone know any BAPI or RFC for replicate the transaction LX03?
    Thanks

    There are no alternate transaction for OBY6

  • Need BAPI/RFC for Updating Category field of CRM_DNO_MONITOR  from SAP R/3.

    Hi SAP GURUS!!
    I need to have a new field category in "Create support message"  of the HELP menu in SAP server. This field values needs tobe updated with that of Category in Solution Manager ( CRM_DNO_MONITOR) .We have found a BADI (SBCOS001 ) where we designed the screen for having the new field. FOr updating the value of this field to sol man, is there any bapi or rfc ..
    Thanks in Advance,
    gopa.

    Hi
    Please check the following points.
    1. Please check the settings that you maintained in the table CRMSUBTAB in ECC. You need to have an entry as follows:
    User: CRM
    Object: VENDOR_MAIN
    U/D : DOWNLOAD
    Object Class: VEND ( & not BUPA for this entry)
    Function Module: PI_BP_VENDOR_MAIN_EXTRACT
    The other entry (for upload) has similar but different values. (Refer to the OSS note 883162.)
    2. Check if you have applied any filter settings in CRM for the adapter object VENDOR_MAIN.
    Regards,
    Srini.

  • Bapi or RFC for Scheduled production orders?

    Hi experts,
    I need to extract a list of the Scheduled production orders (for a specific plant)for integration purpose. Does anyone know if there is any BAPI or RFC for this purpose and could anyone tell me which one could be used.
    I noted that a similar topic "Retrieving production orders and material stock out R/3 system" posted Jan 16, 2006 has been discussed but the outcome was only that standard BAPI / RFC should be available for retrieving the production orders but there was no BAPI or RFC mentioned.
    Best regards,
    Niklas

    Hi,
    I found that the following BAPIs can be used with some parameters.
    BAPI_PRODORD_GET_LIST
    BAPI_PRODORD_GET_DETAIL
    Thanks
    Pavan

  • Standard BAPI/RFC for customer specific pricing

    Hi all,
    We have a requirement for getting the customer specific pricing for a product. .We have few customers who are privelaged of procuring materials at a lesser price than others.We need a procedure or functionality that will pick this discounted price on the product that is raised by the privelaged customer.
    Please let me know if there is any Standard BAPI or RFC for this requirement
    Keerthi

    Hi,
    There is nothing called customer specific pricing in SAP and there is no BAPI to handle pricing for any specific entity.
    These things need to be configured in access sequence, condition tables, condition types etc and you have to configure  pricing in such a way that the pricing elements are common for everybody but depending on the situation, some customer will get materials for lesser price than others by creating condition records as applicable for each customer.
    You have to first configure the pricing procedure.
    Then while maintaining condition records, you have to maintain prices for specific customers where youcan maintain lesser prices. For all others you can maintain normal prices. For example for c.type PR00, you can have two tables in the access sequence. One table may be Sales org/D.C/Div/Customer/Material and the second table can be S.Org/D.C./Div/Material
    Now maintain a condition record like
    5001/00/00/CUSTOMER A/MATERIAL A  Value is 80
    5001/00/00/Material A  Value is 100
    If condition records are maintained like this, the customer A alone will get the material for Rs.80 while all others will get it for Rs.100
    Hope this helps you. If you have specific doubts, pls lemme know.

  • 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

  • Remote-Enabled BAPI/RFC for creating "Request Special Payment (SPSP)"

    Is there any Remote-Enabled BAPI/RFC for creating "Request Special Payment (SPSP)" which is one of the Personnel Change Requests under MSS ?
    Thanks.

    closing to post another question.

  • 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

  • Is there any Bapi for Physical Sample creation

    Hi Folks,
    Is there any Bapi for physical sample creation. My scenario is like this I have the data in the table (material, plant, batch, type,vendor, vendorbatch ). For each material i have to create a  physical sample......
    Any ideas or suggestions would be appreciated..
    thanks
    chaithanya.

    HI Chaitanya,
    You can use : BAPI_BATCH_CREATE
    it has import paramaters like Material, Plant , batch , Batch Attributes ( Vendor No, Vendor Batch etc)... I guess this is what you are looking for.
    Regards,
    -Venkat.

  • ANY BAPI FOR FBRA TRANSACTION CODE - MOST URGENT

    HI,
    DONE RECORDING FOR FBRA AFTER EXECUTING , AFTER ENTERING VALUES IT IS SAYING MESSAGE THAT DOCUMENT INCLUDES ALREADY CLEARED ITEMS.CAN ANYBODY HELPS IN THIS?WHY IT IS SHOWING WHEN THE RECORDING IS SUCCESSFULL.
    IS THERE ANY BAPI AVAILABLE FOR THIS? (ALTERNATIVE)
    REGARDS

    Hello,
    Check this FM <b>RESET_CLEARED_ITEMS_BDC_WRITE</b>
    Regards,
    Vasanth

  • Any BAPI for Auto clearing of Vendor accounts

    Hai,
    Any body know, any BAPI for Auto clearing of the Vendor account(transaction F.13).
    This urgent issue.
    Reward will promote you.
    Bye ,
    Elamaran

    no, there's no bapi
    -> another report is rfbibl00 with transaction fb05
    -> you've to fill structures bselk and bselp
    regards Andreas

  • Any BAPI/Function Module for adding new record with dates in PA0027

    Hi all,
    I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
    In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
    thanks for ur time.
    Murali

    Hi Raj/Suresh thanks for ur answers.
    but i am having a problem,i gave this values.
    INFTY               -
                0027
    NUMBER              -
                00000010
    SUBTYPE             -
                010
    OBJECTID
    LOCKINDICATOR
    VALIDITYEND         -
                03/12/2006
    VALIDITYBEGIN       -
                03/01/2006
    RECORDNUMBER        -
                000
    RECORD              -
                P0027
    OPERATION           -
                CHK
    TCLAS               -
                A
    DIALOG_MODE         -
                0
    NOCOMMIT            -
                Y
    VIEW_IDENTIFIER
    SECONDARY_RECORD
    i am getting short dump saying that
    The source field is too short.
    The current program, "SAPLHRMM", tried to assign a field to a field symbo
    However, the field is shorter than the type of the field symbol, which
    is not allowed.
    The statement in question is in the form ASSIGN f TO <fs> CASTING or
    ASSIGN f TO <fs> with a field symbol that was created using the
    STRUCTURE addition.
    I tried  operation - Chage,Create (same thing for all inputs)
    is this correct funtion moduel for my requirment?
    what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
    Thanks for ur time.
    Murali.

  • Bapi or rfc for vl02n

    Hi experts,
    Is there any bapi available for VL02N, J1IJ.
    Thanks in advance
    Geetha K
    Moderator message: please do some research before asking.
    Edited by: Thomas Zloch on Feb 25, 2011 1:59 PM

    Raj,
    check this BAPi:
    BAPI_OUTB_DELIVERY_CHANGE
    Amit.

Maybe you are looking for