Any BAPI for "FB02"

Hi All,
Is there any BAPI/FM for transaction FB02?
Regards

I have successfully changed the reference field (BSEG-ZUONR) for a particular item using this FM FI_ITEMS_MASS_CHANGE.
Please find the following code:
REPORT  ZTEST_FB02                                .
type-pools : TPIT.
DATA : W_BSEG     TYPE BSEG,
       W_message  TYPE T100-TEXT.
data :   it_errtab  TYPE  tpit_t_errdoc WITH HEADER LINE,
         it_fldtab  TYPE  tpit_t_fname  WITH HEADER LINE,
         it_buztab  TYPE  tpit_t_buztab WITH HEADER LINE.
  Field name to be changed
  it_fldtab-fname = 'ZUONR'.
  append it_fldtab.
  clear  it_fldtab.
  Field value
  W_BSEG-ZUONR = 'TEST19'.
  ITEM 7
  select single
           bukrs
           belnr
           gjahr
           buzei
           koart
           umskz
           bschl
           mwart
           mwskz
   from bseg
  into corresponding fields of it_buztab
  where belnr = '0902001922' and
        bukrs = '3160'       and
        gjahr = '2006'       and
        BUZEI = '007'.
  if sy-subrc = 0.
    APPEND it_buztab.
    clear  it_buztab.
  endif.
  CALL FUNCTION 'FI_ITEMS_MASS_CHANGE'
    EXPORTING
      S_BSEG     = W_bseg
    IMPORTING
      ERRTAB     = it_errtab[]
    TABLES
      IT_BUZTAB  = it_buztab
      IT_FLDTAB  = it_fldtab
    EXCEPTIONS
      BDC_ERRORS = 1
      OTHERS     = 2.
  IF SY-SUBRC <> 0.
   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    perform generate_message.
    write : w_message.
  else.
    write : 'Updated successfully'.
  ENDIF.
&      Form  generate_message
  FORM generate_message .
      CLEAR W_message.
    read table it_errtab index 1.
    if sy-subrc <> 0.
      CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          id        = it_errtab-ERR-MSGID
          lang      = sy-langu
          no        = it_errtab-ERR-MSGNR
          v1        = it_errtab-ERR-MSGV1
          v2        = it_errtab-ERR-MSGV2
          v3        = it_errtab-ERR-MSGV3
          v4        = it_errtab-ERR-MSGV4
        IMPORTING
          msg       = W_message
        EXCEPTIONS
          not_found = 1
          OTHERS    = 2.
     endif.
  ENDFORM.                    " generate_message
regards,
vamshi tallada

Similar Messages

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

  • Is there any BAPI for BOM creation? which does by RCSBI010 / Batch Input.

    Hi Experts,
    I need to Upload the extracted Excel-file(.txt) for BOM creation, so, pls, let me know that, Is there any BAPI for this purpose. In detail the requirement is that,
    The suggested idea shuld work as like as pgm. RCSBI010
    thanq
    Edited by: Srinivas on Feb 14, 2008 6:18 PM

    Hi Srinivas,
    Try these Function Modules
    CS_BI_BOM_CREATE_BATCH_INPUT   - Create BOM Via Batch Input
    CS_BI_BOM_CREATE_BATCH_INPUT1  - Create BOM Via Batch Input (Corrected Session Handling)
    There are two BAPI's too, which can be used
    ALE_MATERIAL_BOM_GROUP_CREATE
    BAPI_MATERIAL_BOM_GROUP_CREATE - Creation of a material BOM group
    Hoe this helps.
    Edited by: Priyabrata Samanta on Feb 15, 2008 3:56 AM

  • Do we have any BAPI for FBL3N or FBL4N?

    Hi Experts,
    Pls. let me know that, Is there any BAPI for FBL3N or FBL4N? really, am struggling!!
    thanq

    THANQ
    looks like its working.
    so,  pls. let me know example input parameters. bcoz, I hv the values of  comapny codeYEAR; month, GL ACCOUNT #; PROFIT CENTER AND KOST CENTER.
    bcoz, when I see the input paras, they r confusing.
    thanq

  • Are there any bapi for create Business Partner

    Dear Sir,
    Do you know  are there any bapi for create Business Partner in CRM
    Please advise.
    Thank you and best ergards,
    Vimol

    Dear Vimol,
    BAPI_BUPA_CREATE_FROM_DATA     ......SAP BP, BAPI: Create Business Partner
    BAPI_BUPA_FS_CREATE_FROM_DATA  .......SAP BP, BAPI: Create Business Partner
    BAPI_BUPA_FS_CREATE_FROM_DATA2 .......SAP BP, BAPI: Create Business Partner
    Hope this will help.
    Regards,
    Naveen.

  • Any BAPI for Transaction VF01??

    Hi Experts ,
    Is there any Bapi for transaction VF01.
    If it is then plz. do help me to use that one with coding .
    Regards,
    Rahul

    Hi,
    Check this sample code of creating the billing document using the bapi BAPI_BILLINGDOC_CREATEMULTIPLE.
    DATA: t_success TYPE STANDARD TABLE OF bapivbrksuccess WITH HEADER LINE.
    DATA: t_billing TYPE STANDARD TABLE OF bapivbrk WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapireturn1 WITH HEADER LINE.
    t_billing-salesorg = vbak-vkorg.
    t_billing-DISTR_CHAN = vbak-vtweg.
    t_billing-DIVISION = vbak-spart.
    t_billing-DOC_TYPE = vbak-auart.
    t_billing-ref_doc = vbak-vbeln.
    t_billing-ref_item = vbap-posnr.
    t_billing-doc_number = vbak-vbeln.
    t_billing-ITM_NUMBER = vbap-posnr.
    t_billing-ordbilltyp = 'BILLING TYPE'.
    t_billing-price_date = sy-datum.
    t_billing-ref_doc_ca = vbak-vbtyp.
    t_billing-sold_to = vbak-kunnr.
    t_billing-material = vbap-matnr.
    t_billing-plant = vbap-werks.
    APPEND t_billing.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
    TABLES
    billingdatain = t_billing
    return = t_return
    success = t_success.
    commit work.
    <b>Reward points</b>
    Regards

  • Is there any BAPI  FOR TASKLIST CREATION OF ANY EQUIPMENT ?

    Dear Sir,
    Is there any BAPI  FOR TASKLIST CREATION OF ANY EQUIPMENT .
    Thanks.
    Regards,
    Pooja Joshi.

    Hello Pooja
    Perhaps the following link may be useful:
    <a href="http://www.sapfans.com/forums/viewtopic.php?p=906052">FAQ: Plant Maintenance and Customer Service BAPIs</a>
    Regards
      Uwe

  • Any BAPI for Transaction MIRO

    please tell me any BAPI for Standard transaction MIRO , or should I have to use BDC instead ?
    PLease rep , thnx in advance

    BAPI_INCOMINGINVOICE_CREATE

  • Any BAPI for tcode :FB50/FB50L

    HI ,
    is there any BAPI for tcode FB50 & FB50L.
    POints will be rewarded
    Thanks in advacne

    hi
    List of all BAPIs
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    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://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Any BAPI for calculating Previous Period Balances?

    Is there any BAPI for calculating previous period balances my period is 04 and have to display 123 period balances.
    please help.
    Moderator message: please search for available information/documentation before asking.
    locked by: Thomas Zloch on Oct 5, 2010 4:45 PM

    Well, did you even try via SE37 a simple F4 with BAPIBALANCE or BAPIACCBALANCE* will give you the answer....
    Regards,
    Raymond

  • Any bapi for update MCJ4 report(SAP performance reports)

    Hi,
    Any bapi for update MCJ4 report(SAP performance reports)
    or
    how to update MCJ4 report from my webdynpro application.
    Regards,
    Deepak Singh

    Hi,
    Have you gone through this ,We already have the discussion on this .
    [http://forums.sdn.sap.com/thread.jspa?threadID=1162642]
    BTW , As you say, you are going to create the Milsetsone what is your reference is it WBS element and project definition or network , How are you planning to bring the reference data from the legacy system [ As example the WBS element against which the Milestone s are craeted] into SAP . Becuase as far as i know milestones area attached with project definition and then further down to WBS element so you need to bring the Project definition + WBS element to change create the milsetone .
    Thanks,
    Anjaneya .

  • There is Tcode CU51which is for Order BOM ,Is there any BAPI  for OrderBOM.

    Hi All,
    There is Tcode CU51which is for Order BOM , So is there any BAPI for that Ordre BOM
    pls can you help me
    thanks
    mars

    Hi,
    Refer These links:
    https://forums.sdn.sap.com/click.jspa?searchID=13707386&messageID=5726376
    https://forums.sdn.sap.com/click.jspa?searchID=13707605&messageID=4868211
    Regards,
    Shiva Kumar

  • Is there any BAPI for Upload Documents of WBS elements?

    Hi Guys,
                 Can anbody tell me is there any BAPI for Uploading Documents  of WBS elements ?
    Thanks,
    Gopi.

    hi
    check these BAPI
    Change WBS Elements Using BAPI                                                                               
    BAPI_BUS2054_CHANGE_MULTI           
    Create WBS Elements Using BAPI 
    BAPI_BUS2054_CREATE_MULTI                                                               
    Delete WBS Elements Using BAPI                                                                               
    BAPI_BUS2054_DELETE_MULTI                                                               
    Detail Data for WBS Elements                                                                               
    BAPI_BUS2054_GETDATA                                                                      
    Reading the GUIDs using the WBS Key
    BAPI_BUS2054_GET_GUID_FROM_KEY                                                     
    Reading the WBS Key using the GUIDs                                              
    BAPI_BUS2054_GET_KEY_FROM_GUID                                                                               
    Check Existence of a WBS Element                                                 
    BAPI_PROJECT_EXISTENCECHECK                                                                               
    Element                                                 
    thnks
    sitaram

  • Is there any bapi for salary

    hi all,
    is there any bapi for salary

    hi,
    BAPI_ACC_EMPLOYEE_PAY_CHECK    Accounting: Check Vendor Acct Assignment for HR Posting
    BAPI_ACC_EMPLOYEE_PAY_POST     Accounting: Post Vendor Acct Assignment for HR Posting

Maybe you are looking for

  • Purchase order creation problem.. me21n

    Hi All, I have the following requirement in creation of PO. When the Purchase Order of some type, say for eg. in my case its a custom type ZNB denoting intercompany pricing is created from a Purchase Requisition, the system should check the Account A

  • External monitor not recognized!

    I have a Philips 180P2 external monitor hooked up to my iMac 2.8 GHz, 24", which was running fine until my upgradte to SL this afternoon. Now (among other little "quirks") the external monitor can't recognize the signal from the iMac ... or rather, t

  • How to zero-write free disk space?

    Hello: I need to zero write the free space of the hard disk to ensure that data is erased and because im using a virtual hard disk and i need to zero off free space to be able to compact the disk how can I do that? is there any command to do that ? t

  • How can I design and send emailers using Adobe Muse?

    Hello Geeks, How can I design and send emailers using this wonderful software called Adobe Muse?

  • Temporary profile

    Hello, My company gave me a computer with directaccess connectivity enabled. My problem is thet I receive a popup after logon that states I am logged in using a temporary profile. However I can access to my company share (even if there is a red cross