BDC for CM25 tcode or a function module to dispatch planned orders

Please suggest a way for BDC of CM25 tcode as the selection of planned/process order in the tcode is not captured in recording.
or provide FM/BAPI for dispatch of planned orders.
Moderator message - Cross post locked
Edited by: Rob Burbank on Oct 23, 2009 11:27 AM

reposting it

Similar Messages

  • Tcode CM25:BDC or function module to dispatch planned orders

    Hi all,
    Could you please suggest a BAPI/FM for CM25 -dispatching the planned orders.
    While i try BDC, it requires the line selection for dispatch,which does not get captured in recording.
    Can anyone throw light on this or suggest any alternative.
    thanks
    kiran
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Oct 23, 2009 11:28 AM

    reposting it

  • BDCs for Multiple tcodes

    Hi Gurus,
    I am struck with BDCs for multiple tcodes.
    I know that multiple tcodes can be done only using session method.
    Please help how to proceed.
    Regards,
    V S L Bharathi K

    Hi,
    Loop at itab1.
    *fill BDCDATA table
    call transaction 'XXXX' using mode l_mode
                                messages in mess_tab
    *"Chk if any Error/Abort message in mess_tab
    * get the value for next processing.
    read table message_tab with key type ='S'
                              msg_class = 'XX'
                              msg_no     = 'NNN'.
    l_par = mess_tab-msg_v1.
    refresh BDCDATA.
    *again fill BDCDATA table
    call transaction 'YYYY' using mode l_mode
                                messages in mess_tab
    endloop.
    Hope this helps.

  • Documentation for RS_EU_CROSSREF (where-used list function module)

    Hi,
    I'm trying to understand how to use the "RS_EU_CROSSREF" function module.
    It corresponds to the where-used list function you find in so many SAP screens.
    I need to use it in a program, but I can't find any good documentation about it.
    I'd like something that tells me what values I have to fill in parameters.
    For example, how to search form "TEST_FORM" in all programs ? or even in a given program, I didn't get how to restrict the search to a program...
    Thank you for any help,
    Quentin

    Hi Gurpreet Singh,
    table cross does not find any function modules although I know for sure that there are function modules calling the function module.
    Please post an example of how to find function modules calling a function module with RS_EU_CROSSREF.
    /Elvez

  • Steps for creating a new BAPI function module

    Hello experts,
    Can any one send me steps for creating a new BAPI function module , I got a requirement to do like this,but I dont have any clue about how to create.
    Please help !!!

    BAPI stands for Business Application Programming Interface.
    There are 5 different steps in BAPI.
    - Create BAPI Structure  
    - Create BAPI Function Module or API Method.  
    - Create BAPI object  
    - Release BAPI Function Module.  
    - Release BAPI object.
    Step1. Creating BAPI Structure:  
    - Go to <SE11>. 
    - Select Data Type & Enter a name. 
    - Click on Create.
    - Note: Always BAPI should be in a development class with request number (Not Local Object).
    - Select Structure & hit ENTER.
    - Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    - Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module: 
    - Enter TR.CODE <SE37>.
    - Before entering any thing, from the present screen that you are in, select the menu
       Goto -> Function Groups -> Create Group.
       Enter a name (Note: This name Must start with ZBAPI)
       Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
       Click on the Third ICON that says Inactive Objects. 
       Select the group that you just created and click on Activate. 
       Notice that the group you created will disappear from the list of inactive objects.
    - Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says [IMPORT].
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says [EXPORT].
    Enter the following as is in the first three fields 
      RETURN        TYPE        BAPIRETURN (These 3 field values are always same)
      Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object: 
    - Enter Tr.Code <SWO1>   (Note. It is letter ‘O’ and not Zero).
    - Enter a name and then click on create. Enter details. 
    NOTE: Make sure that that Object Type and Program name are SAME.   
    - Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom. 
    - Then hit <ENTER>. 
    - Now we have to add ‘Methods’. High light METHODS and then select the following from the menu: 
    Goto Utilities -> API Methods -> Add Methods.
    - Enter function Module name and hit <ENTER>.
    - Select the second FORWARD ARROW button (>)to go to next step. 
    - Check if every thing looks ok and again click on FORWARD ARROW button (>).
    - Then select ‘YES’ and click on <SAVE>.
    -  Now on a different screen goto TR.CODE <SE37>.  Enter Function Module name and select from the top menu  Function Module -> Release -> Release.
    - Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    - Edit -> Change Release Status -> Object Type Component -> To Implemented.
    - Edit -> Change Release Status -> Object Type Component -> To Released.
    - Edit -> Change Release Status -> Object Type -> To Implemented.
    - Edit -> Change Release Status -> Object Type -> To Released.
    - Then click on <SAVE>.
    - Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    - Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>. 
    Here it shows business object repository.
    - First click on the middle button and then select “ALL” and hit ENTER.
    - Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully.
    regards,
    aswin

  • Table or Function module to get Internal order planning and Cost element pl

    Dear All,
    Table or Function module to get Internal order planning and Cost element planning.
    Internal order planning from T-code KO13.
    Thanks in advance.
    Regards,
    Ravi
    Edited by: Ravi Chandra on Sep 13, 2011 8:08 AM

    BPEJ, BPEG, BPEP

  • Function module to get Sales Order classification.

    Hello everyone,
    Can someone give me a function module to get Sales Order classification? Really appreciate it.

    Hi
    Check the following BAPI's:
    BAPI_OBJCL_GETDETAIL
    BAPI_OBJCL_CHANGE
    or use the fun module:
    CLAF_CLASSIFICATION_OF_OBJECTS.
    Reward points if useful
    Regards
    Anji

  • Dispatch planned orders CM25

    Dear experts,
    Is it possible to dispatch planned orders in the capacity planning board CM25?
    In which profile do I change the settings to make this happen?
    Many thanks,
    Tim
    PS: will award points!

    the following  profiles can be used for viewing capacity over load
    SAPSFCG001     SFC: View work center/capacity (2 graf.)
    SAPSFCG002     SFC: View work cntr./capacity (tabular)
    SAPSFCG003     SFC: View order/capacity      (tabular)
    SAPSFCG004     SFC: View order/capacity     (graphical)
    SAPSFCG005     SFC: View Individual cap.    (graphical)
    SAPSFCG006     SFC: View work cntr/ind.cap.  (tabular)
    SAPSFCG007     SFC: View order/individual cap. (graph.)
    SAPSFCG008     SFC: View order/individual cap. (tabul.)
    SAPSFCG009     SFC: View line               (graphical)
    SAPSFCG010     SFC: View setup optimize     (graphical)
    SAPSFCG011     SFC: View work center/capacity (3 graf.)
    SAPSFCG014     SFC: GANTT view wkcntr/capacity (3 grph)
    SAPSFCG015     SFC: Evaluation, standard overview
    SAPSFCG016     SFC: WC/Capa (2 temp.save graphical)
    SAPSFCG020     SFC: Standard overview in work cntr view
    SAPSFCG021     SFC: Standard overview in order view
    SAPSFCG022     SFC: Standard overview in indiv.cap.view
    SAPSFCG023     SFC: Standard overview + actual cap.rqts
    Usually the following std profiles are used.
    SAPSFCG021     SFC: Standard overview in order view
    SAPSFCG022     SFC: Standard overview in indiv.cap.view
    <b>Dispatch of capacity is carried out in the following transaction</b>
    CM21, CM22
    CM27, CM28
    CM31, CM32

  • BDC for the Infotype 0585 in HR Module

    Hi ,
    Iam facing problem in Uploading the Data into the Infotype 0585 ( Section 80 Deductions - Proposals ).
    Can i get any BDC to upload the Infotype 0585-Proposals.
    Points will be Surely Rewarded.
    Regards,
    N.L.Narayana

    *& Report  Z_HR_UPLOAD_INFOTYPE_0585
    report  z_hr_upload_infotype_0585.
    tables:pa0585.
    data:begin of it_585 occurs 0 ,
         pernr type rp50g-pernr,   "Personnel no
         begda type pa0585-begda,  "Begin Date
         endda type pa0585-endda,  "End data
         sbs01 type pa0585-sbs01,  "Sub section code
         sbd01 type pa0585-sbd01,  "Sub section division number
         pcn01(12) type c,         "Proposed contribution
         sbs02 type pa0585-sbs02,  "Sub section code
         sbd02 type pa0585-sbd02,  "Sub section division number
         pcn02(12) type c,         "Proposed contribution
         sbs03 type pa0585-sbs03,  "Sub section code
         sbd03 type pa0585-sbd03,  "Sub section division number
         pcn03(12) type c,         "Proposed contribution
         sbs04 type pa0585-sbs04,  "Sub section code
         sbd04 type pa0585-sbd04,  "Sub section division number
         pcn04(12) type c,         "Proposed contribution
         sbs05 type pa0585-sbs05,  "Sub section code
         sbd05 type pa0585-sbd05,  "Sub section division number
         pcn05(12) type c,         "Proposed contribution
         sbs06 type pa0585-sbs06,  "Sub section code
         sbd06 type pa0585-sbd06,  "Sub section division number
         pcn06(12) type c,         "Proposed contribution
         sbs07 type pa0585-sbs07,  "Sub section code
         sbd07 type pa0585-sbd07,  "Sub section division number
         pcn07(12) type c,         "Proposed contribution
         sbs08 type pa0585-sbs08,  "Sub section code
         sbd08 type pa0585-sbd08,  "Sub section division number
         pcn08(12) type c,         "Proposed contribution
         sbs09 type pa0585-sbs09,  "Sub section code
         sbd09 type pa0585-sbd09,  "Sub section division number
         pcn09(12) type c,         "Proposed contribution
         sbs10 type pa0585-sbs10,  "Sub section code
         sbd10 type pa0585-sbd10,  "Sub section division number
         pcn10(12) type c,         "Proposed contribution
         sbs11 type pa0585-sbs11,  "Sub section code
         sbd11 type pa0585-sbd12,  "Sub section division number
         pcn11(12) type c,         "Proposed contribution
         sbs12 type pa0585-sbs12,  "Sub section code
         sbd12 type pa0585-sbd12,  "Sub section division number
         pcn12(12) type c,         "Proposed contribution
         sbs13 type pa0585-sbs13,  "Sub section code
         sbd13 type pa0585-sbd13,  "Sub section division number
         pcn13(12) type c,         "Proposed contribution
         sbs14 type pa0585-sbs14,  "Sub section code
         sbd14 type pa0585-sbd14,  "Sub section division number
         pcn14(12) type c,         "Proposed contribution
         sbs15 type pa0585-sbs15,  "Sub section code
         sbd15 type pa0585-sbd15,  "Sub section division number
         pcn15(12) type c,         "Proposed contribution
         end of it_585.
    data:wa_585a like  it_585.
    *--selection Screen--
    selection-screen: begin of block blk1 with frame title text-000.
    parameters: p_file type  rlgrap-filename  obligatory.
    selection-screen: end of block blk1.
    at selection-screen on value-request for p_file.
    *-to locate file in a directory (on value request)
      call function 'KD_GET_FILENAME_ON_F4'
        exporting
          static        = 'X'
        changing
          file_name     = p_file
        exceptions
          mask_too_long = 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.
      endif.
    START-OF-SELECTION                                                  *
    start-of-selection.
      perform get_data.
      perform emp_invt.
    *&      Form  GET_DATA
          text
    -->  p1        text
    <--  p2        text
    form get_data.
    READ FILE INTO INTERNAL TABLE.
      data: lv_fname type string.
      lv_fname = p_file.
      call function 'GUI_UPLOAD'
        exporting
          filename                = lv_fname
          filetype                = 'ASC'
          has_field_separator     = '#'
        tables
          data_tab                = it_585[]
        exceptions
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          others                  = 17.
      if not sy-subrc is initial.
       MESSAGE e000(ZHRMSG) WITH lv_fname.
      endif.
    endform.                    " GET_DATA
    *&      Form  EMP_INVT
          text
    -->  p1        text
    <--  p2        text
    form emp_invt.
      data : wa_0585  type p0585,
             it_return type bapireturn1 occurs 0 with header line,
             it_05851  type p0585 occurs 0,
             it_pa0585 type standard table of pa0585 with header line .
      loop at it_585 into wa_585a.
        move-corresponding wa_585a to wa_0585.
        wa_0585-infty = '0585'.
        append wa_0585 to it_05851.
        clear:wa_0585 ,
              wa_585a.
      endloop.
      sort it_05851 by pernr.
      select * from pa0585 into table it_pa0585
      for all entries in it_05851
      where pernr = it_05851-pernr.
      loop at it_05851 into wa_0585.
    Convert START Date into internal format (ex: 10/06/04 -> 20040610
        call function 'CONVERSION_EXIT_DATEX_INPUT'
          exporting
            input  = wa_0585-begda
          importing
            output = wa_0585-begda.
    Convert END Date into internal format (ex: 10/06/04 -> 20040610 )
        call function 'CONVERSION_EXIT_DATEX_INPUT'
          exporting
            input  = wa_0585-endda
          importing
            output = wa_0585-endda.
    *******Function module to lock personnel no
        call function 'BAPI_EMPLOYEE_ENQUEUE'
          exporting
            number = wa_0585-pernr.
             IMPORTING
               return = WA_RETURN.
        read table it_pa0585 with key pernr = wa_0585-pernr
                                    begda = wa_0585-begda
                                    endda = wa_0585-endda.
        if sy-subrc is initial.
          call function 'HR_INFOTYPE_OPERATION'
            exporting
              infty                  =  '0585'
              number                 =  wa_0585-pernr
      SUBTYPE                =
      OBJECTID               =
      LOCKINDICATOR          =
             validityend            =  wa_0585-endda
             validitybegin          =  wa_0585-begda
      RECORDNUMBER           =
              record                 = wa_0585
              operation              = 'MOD'
              tclas                  =  'A'
             dialog_mode            = '1'
             nocommit               =  ''.
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
      RETURN                 =   IT_RETURN[].
      KEY                    =
        else.
          call function 'HR_INFOTYPE_OPERATION'
            exporting
              infty                  =  '0585'
              number                 =  wa_0585-pernr
      SUBTYPE                =
      OBJECTID               =
      LOCKINDICATOR          =
             validityend            =  wa_0585-endda
             validitybegin          =  wa_0585-begda
      RECORDNUMBER           =
              record                 = wa_0585
              operation              = 'INS'
              tclas                  =  'A'
             dialog_mode            = '1'
             nocommit               =  ''.
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
      RETURN                 =   IT_RETURN[].
      KEY                    =
        endif.
    Function module to unlock the personnel no
        call function 'BAPI_EMPLOYEE_DEQUEUE'
          exporting
            number = wa_0585-pernr.
        clear wa_0585.
      endloop.
    endform.                    " EMP_INVT

  • How to supress a warning message in BDC for ME11 Tcode

    Hi Expert,
    I am doing a BDC report for ME11 Tcode and some of warning is ignorable for this transaction code,how can we suppress these warning through BDC program, is it possible or will have to make some changes changes in TCODE(ME11) itself.

    hi,
    if the warning message coming in a pop-up window then it can be supressed in the following way.
    1. comment the lines of the code of bdc recording of that pop-up screen along with the perform of bdc ok code  '=ENTE".
    2. use the structure ctu_params and fill the correspondings fiels, particularly the field nobinpt = 'X' and then use this structure in the call transcation statement as
    call transcation 'ME11'
                            using bdcdata
                            options from opt ( structure of ctu_params )
    3. At the time of recording use the option of check box " no batch input session ".
    regards,
    Alok

  • How to search for a string in ALL Function Modules source code

    Hello,
    I want to search for the string "HELLO" in all FUNCTION MODULES source code(FM, no reports/programs).
    Is this possible? How?
    Cheers,
    Andy

    hi,
    Execute RPR_ABAP_SOURCE_SCAN to search for a string in the code ... Press where-used-list button on the program which takes to the function group or the function module where it is used ..
    Regards,
    Santosh

  • Creating the bussiness roles for the bussiness partner using Function modul

    Hi
             How to create the business roles using the function modules for the Business partner.

    You can also assign the role at the time of creation of the business partner itself. Use the function module BAPI_BUPA_FS_CREATE_FROM_DATA to achieve the same.
    If your business partner is already there then you can use the function module BAPI_BUPA_ROLE_ADD.
    <b>Reward points if it helps.</b>

  • BAPI function module to get process orders for certain material

    Dear experts ,
    kindly , I need my vb application to get all CRD , but not DLV Process orders for Material X.
    Into SAP , I use the COIO , then set material to X , then display flag CRTD included , and Exclude DLV.
    Question now , What is the function module that does this. what is the table name , and how to set search parameters.
    my code will be like this
    theFunc = functionCtrl.Add("BAPI_PO_GETDETAIL") ' get po data
       theFunc.exports("purchaseorder") = t.Text
                 returnFunc = theFunc.call
            returnParam = theFunc.imports("po_header")
            retTab = theFunc.tables("po_items")
            For Each rr In retTab.Rows
                tt1.Text &= (rr("MATERIAL")) & vbTab
            next
    Thanks
    Waleed

    Hi,
    Check if the below helps:
    1.  BAPI_SALESORDER_GETLIST for VA05
    2. BAPI_QUOTATION_GETDETAILBOS for VA25.
    Regards,
    Vivek

  • Search for Top GTS BADIs/BAPIs/Function Modules

    Hi All,
    Reaching out to collect list of the most common BADIs/BAPIs/Function Modules in GTS.
    Been searching the web and I can find lists for other SAP areas, but not ours.
    Thanks, Jeff

    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=190743879
    RH_GET_MANAGER_ASSIGNMENT

  • Any function module to change planning hierarchy (tcode: MC92)?

    I need to change planning hierarchy for product alloction.
    I have tried to do it via transaction recorder, but some screens are missing when I tried to record it.
    Could any one please advise if there is any function module that can serve the same purpose? Thanks.

    Thanks Bhanu for ur quick reply.
    Is that enough to change the technical name in the table RSZCOMPDIR.
    Let me give some more information, idea is to change the technical name of all the queries present in a system based on a new naming conventions.
    Eg.
    Change all the technical name of queries ZQSAP to ZQXYZ.
    If there is function module which allows to change the technical name of the queries that not only updates the table RSZCOMPDIR but also all the interlinked tables.

Maybe you are looking for

  • How to reset "Add Printer" code on 6500a? The original one generated expired and site won't accept.

    What are the exact steps to reset the "Add Printer" code\email for the OfficeJet 6500a?  I set up the wireless portion and was generated a code, however trying to register and enter it into the website, it will not accept stating that is has expired

  • Keeps asking for my password sometimes takes it sometimes doesn't

    I very much appreciate your help and expertise --- Thunderbird keeps asking for my password. I use it for both a non gmail account and a gmail account. Both accounts have repeatedly asked for the password... however the gmail account seems to work be

  • Using local functions in compound triggers

    Hi anybody, I'm using ora11gR2. Tried the new compound trigger feature. I define a before each row and an after statement section. Additionally I define several local functions in top of trigger body. In local procedure ( insdelupd within this exampl

  • Copying a document to iPhone

    I have a Pages document on my iMac (Lion) that I want to copy to my iPhone4 (Verizon). I have the Pages App on my iPhone and want to edit the document on my iPhone. How do I get the document to the iPhone? I have tried moving the document to iTunes a

  • Show stage and start playing sooner before loaded

    I am making a flash game - right now, the swf is 3 megs in size and will probably be much bigger by the time it's done. I have preloader code on frame 1 to show a progress bar and animation  that waits for the entire movie to load. However, the websi