Need a BAPI for Tcode 'OX19'

Hi,
  I need a BAPI for Tcode 'OX19' so that the comapny codes for that Controlling area gets updated in the database.
Regards,
Deepthi.

Hi,
Using the  BAPI "BAPI_COAREA_GET_RELATED_CCODES" , I am able to view the company codes for that Controllling area. I need for Creation of Company codes for the controlling area. can you tell me please.
Regards,
deepthi.

Similar Messages

  • I need a bapi  for material management advance shipping notifications

    i need a bapi  for material management advance shipping notifications  for developing powls which includes below fields and some more fields.
    •     Inbound delivery number
    •     Due date (GR date)
    •     Vendor delivery number
    •     Material
    •     Name of material
    •     Quantity
    •     Vendor
    •     Name of vendor
    thanks and regards,
    jameer.p

    Hi Jameer,
    This is a hard one, my friend. I understand what you are trying to do.. Try BAPI_DELIVERYPROCESSING_EXEC. It is tricky though.
    Moreover you might want to use a FM to fill the IDOC data. something like IDOC_INPUT_**. this might be a better option.
    cheers,
    Hema.

  • I need a bapi  for service order

    i need a bapi for serviceorders  the fields which i required in the output should be 
    GLTRI(Actual finish date),
    FTRMP(Planned release date),
    RMANR(     SD Document Number),
    POSNV_RMA(Item number of the SD document),
    PM_OBJTY,
    ARBPL.

    Dear Jammer,
    This question can be put in ABAP forum. You can also try SD forum. Chances of getting a reply on this query is almost nil in this forum.
    Please let me know in case of any query and keep revisiting this forum.
    Regards,
    Rakesh

  • I need a bapi  for workdownstructure elements

    i need a bapi  for workdownstructure elements 
    •     WBS number
    •     WBS descriptions
    •     WBS start date
    •     WBS end date
    •     Status
    thanks and regards,
    jameer.p
    Edited by: Jameer P on Jan 30, 2008 12:59 PM

    Hai.
    It may help you.
    can use WS_DOWNLOAD like this:
    L_T_HEADERS TYPE TABLE OF TEXT40.
    IF SP_LOCAL = 'X'.
    Headings: TEXT-U01 ... TEXT-U28
        DO 28 TIMES.
          CLEAR: L_F_INDEX,L_F_NAME,L_F_HEADERS.
          L_F_INDEX = SY-INDEX.
          CONCATENATE 'TEXT-U' L_F_INDEX INTO L_F_NAME.
          ASSIGN (L_F_NAME) TO <FS_HEADER>.
          L_F_HEADERS = <FS_HEADER>.
          APPEND L_F_HEADERS TO L_T_HEADERS.
        ENDDO.
        CALL FUNCTION 'WS_DOWNLOAD'
             EXPORTING
                  FILENAME                = SP_FILE
                  FILETYPE                = 'DAT'
             TABLES
                  DATA_TAB                = L_T_OUT
                  FIELDNAMES              = L_T_HEADERS
             EXCEPTIONS
                  FILE_OPEN_ERROR         = 1
                  FILE_WRITE_ERROR        = 2
                  INVALID_FILESIZE        = 3
                  INVALID_TYPE            = 4
                  NO_BATCH                = 5
                  UNKNOWN_ERROR           = 6
                  INVALID_TABLE_WIDTH     = 7
                  GUI_REFUSE_FILETRANSFER = 8
                  CUSTOMER_ERROR          = 9
                  OTHERS                  = 10.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE 'I' NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          LEAVE PROGRAM.
        ELSE.
          DESCRIBE TABLE L_T_OUT LINES L_F_COUNT.
          MESSAGE I145 WITH L_F_COUNT SP_FILE.
        ENDIF.
    Regards.
    Sowjanya.b.

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

  • FM or BAPI for Tcode: FAGLSKF

    Hi,
    I have searched SDN and was unable to find any BAPI for posting into Tcode FAGLSKF.
    When I decided that i need to go with BDC, unfortunately it is not a table container and a ALV container.
    Let me know how to deal with it.
    I have found some FM for this but doesnt do any validations and directly write into the table .
    Regards
    Krish

    Try  'BAPI_ACC_POST_STAT_KEYFIGURE'
    Find Sample code for the same
    DATA :
           ls_doc_header         TYPE          bapifaglskf01,
           ls_item_file_content  TYPE          zst_fi_upload_format,
           lt_extension          TYPE TABLE OF bapifaglskf03,
           lt_doc_items          TYPE TABLE OF bapifaglskf02,
           ls_doc_items          TYPE          bapifaglskf02,
           ls_return             TYPE          bapiret2.
    ********Form Document Header.
       CLEAR ls_doc_header.
       ls_doc_header-comp_code = iv_company_code.
       ls_doc_header-date_from = iv_date_from.
       ls_doc_header-date_to = iv_date_to.
       ls_doc_header-version = '1'.
       ls_doc_header-act_plan_indicator = '0'."Actual
    * Form document Item
       REFRESH lt_doc_items[].
       LOOP AT it_item_file_content INTO ls_item_file_content.
         ls_doc_items-statkeyfig = ls_item_file_content-stagr.
         ls_doc_items-profit_ctr = ls_item_file_content-prctr.
         ls_doc_items-quantity  = ls_item_file_content-mbgbtr.
         APPEND ls_doc_items TO lt_doc_items.
         CLEAR ls_doc_items .
       ENDLOOP.
    **Call BAPI to creat the Document
       CALL FUNCTION 'BAPI_ACC_POST_STAT_KEYFIGURE'
         EXPORTING
           documentheader = ls_doc_header
         TABLES
           linedata       = lt_doc_items
           extension1     = lt_extension
           return         = et_return.
       CLEAR ls_return.
       READ TABLE et_return INTO ls_return WITH KEY type = 'S'.
       IF sy-subrc EQ 0.
         ev_doc_no = ls_return-message_v1.
       ENDIF.

  • Pls suggest right BAPI  FOR  Tcode(MSC2N)

    Hi All,
    I am uploading the data(characteristic values) through the Tcode MSC2N When I am trying to do this through bdc it's not allowing to change characteristic values?What will be the problem?we can use the BAPI BAPI_OBJCL_CHANGE but this bapi will only change the characteristic values but I also need to change date1 field(this is there in the Basic data2in the same transaction MSC2N) Can any body suggest how to do this please?
    Thanks&Regards
    Mahesh

    Hay Mahesh
    Try with the following BAPI's
    BAPI_OBJCL_CREATE              Classification BAPI: Create Assignment
    BAPI_OBJCL_CREATE_KEY          BAPI for Classification: Create Assignment (Key)
    Thanks & regards
    Sreenivasulu P

  • Need a BAPI for FD01(customer Master data creation)

    Hi Experts,
      i want to upload a data from Legacy to sap for FD01 Tcode for Customer master creation, and what is the key points to dev bapi.
    can anyone give me the BAPI for FD01.
    Thanks,
    sudha.

    Hi,
    use bapi 'BAPI_CUSTOMER_CREATE' to create customer and bapi
    'BAPI_VENDOR_CREATE' to create vendor.
    Regards,
    SuryaD.

  • Need BADI's for TCode IW3K( Order - Component List )

    Hi All,
    Please help me in finding the BAdI 's/any other enhancements for TCODE iw3k ( Change Order - Component Overview ).
    I need to add a button on the screen layout at item level.
    Thanks
    Lokesh

    Hi,
          Did you check  BADI <b>WORKORDER_UPDATE</b>?
    rEGARDS

  • Any BAPI for Tcode FD32

    Hi Experts,
    Can anyone please tell me if there is a BAPI for the Tcode FD32 to block a
    customer who exceeds his credit limit?
    Thanks
    Dany

    if both KNKA and KNKK are updated.
    use this FM CREDITLIMIT_CHANGE.
    if either KNKA or KNKK is updated.
    use FM KLIM_WRITE_DOCUMENT
    below is a simple example.
    REPORT  ZTEST.
    TABLES:t014,t014t.
    INCLUDE ff02lcdf.
    INCLUDE ff02lcdv.
    PARAMETERS:kunnr LIKE knkk-kunnr,
               kkber LIKE knkk-kkber.
    START-OF-SELECTION.
    END-OF-SELECTION.
      CLEAR:t014,yknka,knka,yknkk,knkk.
      SELECT SINGLE * FROM t014 WHERE kkber = kkber.
      IF sy-subrc = 0.
        *XF02C = t014-waers.
        xf02c = t014-waers..
      ENDIF.
      objectid = kunnr.
      tcode = 'FD32'.
      utime = sy-uzeit.
      udate = sy-datum.
      username = sy-uname.
      upd_knkk = 'U'.
      SELECT SINGLE * FROM knka INTO yknka WHERE kunnr = kunnr.
      IF sy-subrc = 0.
        MOVE yknka TO knka.
      ENDIF.
      SELECT  SINGLE * FROM knkk INTO  yknkk WHERE kunnr = kunnr AND kkber = kkber.
      IF sy-subrc = 0.
        MOVE yknkk TO knkk.
        knkk-klimk = '543.23'.
        knkk-ctlpc = 'SG2'.
        MODIFY knkk.
      ENDIF.
      IF   ( upd_knka                           NE space )
          OR ( upd_knkk                           NE space )
        CALL FUNCTION 'KLIM_WRITE_DOCUMENT           ' IN UPDATE TASK
          EXPORTING
            objectid                = objectid
            tcode                   = tcode
            utime                   = utime
            udate                   = udate
            username                = username
            planned_change_number   = planned_change_number
            object_change_indicator = cdoc_upd_object
            planned_or_real_changes = cdoc_planned_or_real
            no_change_pointers      = cdoc_no_change_pointers
            o_yknka                 = yknka
            n_knka                  = knka
            upd_knka                = upd_knka
            o_yknkk                 = yknkk
            n_knkk                  = knkk
            o_xf02c                 = *xf02c
            n_xf02c                 = xf02c
            upd_knkk                = upd_knkk.
      ENDIF.
      CLEAR planned_change_number.

  • Need of bapi for getting details of material strage locations

    hi all,
    i need one bapi which gives details of for how many storage locations the material has been extended for particular plant..

    hi
    this is a sample bapi for getdetails.
    DATA : P0008 LIKE P0008.
    DATA : ONDATE TYPE SY-DATUM.
    SELECT SINGLE * FROM PA0008
    INTO CORRESPONDING FIELDS OF P0008
    WHERE PERNR = ITAB-PERNR
    AND BEGDA <= ONDATE
    AND ENDDA >= ONDATE.
    DATA : WAGETYPES LIKE BAPIP0008P OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'BAPI_BASICPAY_GETDETAIL'
    EXPORTING
    EMPLOYEENUMBER = PERNR
    SUBTYPE = P0008-SUBTY
    OBJECTID = P0008-OBJPS
    LOCKINDICATOR = P0008-SPRPS
    VALIDITYBEGIN = P0008-BEGDA
    VALIDITYEND = P0008-ENDDA
    RECORDNUMBER = P0008-SEQNR
    TABLES
    WAGETYPES = WAGETYPES.
    regards
    sravani yendru

  • Need a bapi for change component in CO02

    hi!
    i need to change  mass old material in production order(CO02) .
    so i need a bapi or FM to do it but i can't find it!
    thank you very much!

    Hi,
    Looks like we might not have the one...and you might need to go with BDC.....Check in Txn BAPI also.
    Refer:
    http://abaplog.wordpress.com/2007/10/10/navigating-component-screen-of-co02-with-bdc/
    http://abaplog.wordpress.com/2007/10/10/navigating-component-screen-of-co02-with-bdc/

  • VB11 - CREATE MATERIAL DETERMINATION. need a BAPI for this

    i have to develop an inbound interface program to create VB11 - CREATE MATERIAL DETERMINATION.
    Can any one suggest me if there is any BAPI for doing this insted of going to BDC program .
    Regards
    Raadha

    I don't think there will be any BAPI to do the update as material determination is itself dynamic depending upon which determination type you chose from - the key field combination changes accordingly. Just like updating pricing doesn't have any general purpose BAPI.
    I think BDC is the only way out here

  • Need FM/BAPI for production order

    Hi all
    Let me know FM / BAPI for get component overview based on production order?

    hi
    check this
    BAPI_ALM_ORDER_GET_DETAIL
    or check from SPRO>Production>Shop Floor Control-->System Modifications->Enhancement in the Adding and Changing of Components
    -ashok

  • Need standard BAPI for  Block/Unblock Customer

    Hi All,
    is there Standard BAPI for  Customer Block/Unblock .
    Thanks in Advance.

    Hi,
    below is a useful link which gives a list of bapi's,
    http://www.mysaphelp.com/blog/?p=122
    look out for   V02D                           Customer Master: Read/Block
    might be of some Help...
    Thanks,
    Naren

Maybe you are looking for