Function module to release a work permit attached to a service order.

Hi,
We have a requirement of automating the process of work permit release attached to service order.
I am looking for a function module / BAPI for releasing the work permit attached to a service order by passing service order number and permit ID/Name.
If any of you have come accrose such one please share.
Thanks
Achuthanandan

Hello Philip
The following function modules should be useful:
   - CY_PRIMARY_SELECTION            - Function module for selection of orders for the work center
   - CY_SECONDARY_SELECTION          - Check for additional criteria
   - CR_CAPACITY_AVAILABLE_PERIODS   - Reads the available capacity from work center
   - HR_PERSON_READ_TIME_INFO        - Reads the available capacity from person (modification)
   - CY_GET_PART_CAPACITY            - used only for the first period to read backlog
   - CY_LOAD_DISTRIBUTION            - Distribution key
Please observe that these are simple function modules, not BAPIs, That means, they were developed to be used on the SAP internal programs and they are not supported by SAP when used in custom programs.
BR
Caetano

Similar Messages

  • Function module not released

    Hi,
    I have a requirement where I need to insert/delete international versions of BP standard Address.(This is not the International Address Usage in the Address Overview tab. The international versions can be added by the international versions button in the Address tab.)
    I was tryng to use the following function modules for the same:-
    ADDR_VERSION_INSERT,
    ADDR_VERSION_DELETE,
    ADDR_SINGLE_SAVE.
    I am able to do the verion insert/delete using these function modules but the problem is none of these function modules are released . I was trying to get the correct function modules by debugging the BP transaction and setting the breakpoint at the 'CALL FUNCTION' statement.Also I tried using the report program 'RS_ABAP_SOURCE_SCAN'.But none of them were successful. Also I am not able to get these information from the where-used list of the function modules.
    Please let me know how to go about this.
    Thanks,
    Samrat.

    it's not clear what is released, what is not released. If it's somewhere in the documentation, I consider it released, even though technically it is not released. See [sap library - working with the BAS|http://help.sap.com/saphelp_nw70/helpdata/EN/12/ad79815c5811d3b4ea006094192fe3/frameset.htm]. Even if not released, you may take the small risk to use it, just discuss with your project/maintenance teams.

  • Function Module to get a work center's capacity requirements (load) within a given period

    Hi all experts,
    Currently I’m doing a capacity summary report similar to CM01, but with a summarized capacity availability and loading for a period.
    Selection Parameters: Work center range from and to, Period from and to
    List Format: Work Center, Avail Capacity, Loaded Capacity, Free Capacity, Load %
    I have found a standard function module (FM) to get work center's available capacity for a period, but still facing the challenge to find a FM to get a work center’s capacity requirements (load) in a period.
    I have read through all the related threads from the web, and tested the recommended FMs, but still cannot get a right result.
    Please help to provide some leads for a FM or the logic.
    Best Regards
    Philip

    Hello Philip
    The following function modules should be useful:
       - CY_PRIMARY_SELECTION            - Function module for selection of orders for the work center
       - CY_SECONDARY_SELECTION          - Check for additional criteria
       - CR_CAPACITY_AVAILABLE_PERIODS   - Reads the available capacity from work center
       - HR_PERSON_READ_TIME_INFO        - Reads the available capacity from person (modification)
       - CY_GET_PART_CAPACITY            - used only for the first period to read backlog
       - CY_LOAD_DISTRIBUTION            - Distribution key
    Please observe that these are simple function modules, not BAPIs, That means, they were developed to be used on the SAP internal programs and they are not supported by SAP when used in custom programs.
    BR
    Caetano

  • Function Module to Release Scheduled Jobs

    Dear All,
    I have a requirement to create all the background jobs in SCHEDULED status, this is achieved by using the function modules JOB_OPEN, JOB_SUBMIT and JOB_CLOSE.
    Now at a later point of time, i want to release only a few jobs, which were created using the above mentioned procedure. Insead of doing it manually, is there any way to automate this step ??
    Regards,
    kartik

    Dear Mr. Parupalli,
    That solved my problem. Thank you.
    Regards,
    kartik

  • BAPI/Function module to release request.

    Hi All,
    I want to release the request from my ABAP program. Can anybody suggest me Function Module or BAPI for that. I tried BDC for the same but release get canlled.

    I want to release the request from my ABAP program.
    Not suggested.
    Reason:No consistency no object test no inactive object test been take place with this method.may be on the edge.
    Amit.

  • Function Module not released yet. Has anybody used them in their programs?

    Hi
    I am trying to use the barcode functionality during a goods movement 101 (using MIGO). As we donu2019t have any control of SAPu2019s barcode functionality thru configuration in MIGO I have developed a custom popup and I am calling this in a BADI implementation MB_MIGO_BADI. Once the user enters the barcode then I call Function module ARCHIV_BARCODE_GLOBAL to save the barcode to the standard tables.
    This Function module is not released to the customers and it was last changed on 11/12/2004.
    My question is should I be using this Function module in my BADI implementation even though it is not released (does not have a release date) ?. Has anyone of have used a unreleased Function module in your programs?.
    Additionally I need this info
    I am using ECC 5.0. If anyone of you is using ECC 6.0 or higher can you please check and let me know if this FM ARCHIV_BARCODE_GLOBAL is released or not or when was it last changed.
    Please advice me at you earlist
    Thanks of your time
    SHraj

    Hi,
    We are not using the above FM. But I can give some Info from ECC 6.0.
    In ECC 6.0 the above FM is realeased for customers.
    Last changed on:28.12.2004 18:28:16.
    You can use the same code in ur Z function module.
    Thanks and Regards

  • Function module throwing error from work area. Cannot find the problem...

    REPORT  ZPSMARTFORM1.
    tables: zptable1.
    types: begin of ty_zptable1,
          f1 type zf1,
          f2 type zf2,
          f3 type zf3,
    end of ty_zptable1.
    data: itab type table of ty_zptable1 with header line.
    data: wa type ty_zptable1.
    select f1 f2 f3 from zptable1 into table itab.
    CALL FUNCTION '/1BCDWB/SF00000005'
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS         =
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
      TABLES
        ITAB                       =   .
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    this is my driver program.In my form interface  there are tables,import,export are there where i have to declare tables data.If i am putting wa means it is throwing error.Please show me the clear information.
    Edited by: Julius Bussche on Nov 14, 2008 10:09 AM

    REPORT ZPSMARTFORM1.
    tables: zptable1.
    types: begin of ty_zptable1,
    f1 type zf1,
    f2 type zf2,
    f3 type zf3,
    end of ty_zptable1.
    data: itab type table of ty_zptable1 with header line.
    data: wa type ty_zptable1.
    select f1 f2 f3 from zptable1 into table itab.
    CALL FUNCTION '/1BCDWB/SF00000005'
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    ITAB = .
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Plz for this driver program. Give me the exact solution.I am passing the information like itab  like zptable1 ther ein the smart form table. Even now i am getting error.Here in this driver program i passed itab = itab means .I  am not getting solution.If i have to change any function module name means plz tell me.What i have to put there.Plz give me the correct solution

  • Function module ADDRESS_PRINT_FORM is not working properly

    Hi All,
    I was using FM   ADDRESS_PRINT_FORM   to print the address according to post office guidelines.
    But the problem is for few adress it is giving different output as compared to the address i.e stored in SAP.
    Is there any FM to print the same apart from using the above given FM.
    Please reply with the needful answer.
    Thanks
    Shashikanth Naram

    Hi,
    Check the following Link for code verification,
    [http://forum.saptechies.com/viewtopic.php?t=1300&sid=e25d923722d2e264d51611c0fb61c2ed]
    If then the result is not as expected, you should check the settings for this function module (see the function module documentation).
    Or check in
    [ADDRESS_INTO_PRINTFORM;

  • Function module to add record into incompletion log of creating sale order

    Hi SD Experts,
    Do you know any function module / class  to add record a into incompletion log procedure of creating / changing sale order process? We can do it through configuration OVA2 but I need to add more condition before adding to this table.
    Thanks,
    Duy

    Hi,
    Refer to The SDN Post : [user exit to update the incompletion log in sales order for pricing error |Re: user exit to update the incompletion log in sales order for pricing error]. 
    Limitation : While creating Sales order, this works only for document type with external number range as the code required for updating XVBUV require Sales Order Number.
    Regards
    Vinod

  • How to get the Attachment ID for Service order in CRM

    Hi Guys,
    I need to delete the attachments in Service order; can I use the FM CRM_ICSS_DEL_ATTACH_OF_OBJECT?
    This FM required in Attachment ID as input, could you please any one help me.
    Thanks,
    Gourisankar.

    I have never used this function module before, but looking at the coding, I don't think this will serve your purpose.
    I think it might be better to use method(s) from class CL_CRM_DOCUMENTS.
    Via the GET_INFO method you can retrieve the documents you need and using the DELETE method should delete these object. I did use the GET_INFO method etc. but we haven't deleted any objects. But according to the name of the method, it should DELETE the documents.

  • Store Attachements in IW32 Service order

         Hello
    I would like to automatically save the PDF generated from the print preview from the service order (transaction iw32) in "Services for orders" attachemnt list.
    For example:
    I generade a work order document in iw32 by Print - Order:
    And I would like that this file is saved automatically in the attachment list (and via Archive link in our Content Server):
    Does any know how I can achieve this?
    Thanks and regards
    Marco

    Hi Marco,
    Using Standard SAP it has to be done manually.
    First generate the PDF and save it on local PC. Then upload it into Create Attachment.
    Alternative.
    Create an ABAP program to perform these operations without much manual intervention.
    Hope this helps.
    Regards,
    Deepak Kori

  • How to attach documents to service order item

    Hello all,
    can anybody of you tell me how I can configure my system in such a way that I can attach a document in transaction IW32/IW31 to an operation of the order?
    Currently I can attach a document to the service order sm01 with
    System>Services for object>Create Attachement.
    But then the document is not related to any operation of the order.
    Thanks in advance for your help and regards,
    Rolf

    >
    Rolf Kasel wrote:
    > Hello Meylene,
    >
    > thanks for your hint. I think this is a good Idea. But if I have a ressource - where can I assign it to my operation?
    > And can I add the ressource in a maintenance plan also to the planned operations?
    >
    > Thanks in advance,
    > Rolf
    assigning it is easy -once you went through the setup process- there's a little icon in your service order (tabstrip 'operations') with a hammer and another tool in it - bottom right corner.
    i'm sorry i know next to nothing about maintenance plans but are they not created using general task lists?. then we would be back to my suggestion from earlier to attach them there. but i'm pretty sure you will find all the documentation on help.sap.com. it'll be worth your time, just you try it.
    i forgot a little piece of information in my last post: GOS is a tool that connects your backend (R/3 or whatever) to your frontend in some ways ... that's why you don't get it on item-level. if you are using production ressources it's a 'backend-only' feature. you see, you can use GOS to display the IDOC that created your service order but since an IDOC creates the complete order ... you have another viewpoint of hierachy with GOS ... and while we're at it: GOS is not available for users of type 'service'. check in SU01 for that setting. browse the SDN security forum - we discussed GOS more often lately.

  • FUNCTION MODULE TO FIND LAST WORKING DY OF THE MONTH

    FM to find the month end working day , if the month end falls on sunday or saturday or any other public holiday, it shud exclude that day and give me the last working day of that month.
    Example: Octoberr 2004 month end falls on saturday and sunday. hence the last working day of the month will be 29 october 2004.
    Pls provide me this FM , concerned points will eb awarded.
    Rgds
    Ramada

    hi,
    kindly use this FM.
    it will help u.
    data : your_cal_id like t001w-fabkl,
            max_date  like sy-datum.
    CALL FUNCTION 'LAST_FACTORYDATE_GET'
             EXPORTING
                  factory_calendar_id          = your_cal_id
             IMPORTING
                  DATE                         = max_date
             EXCEPTIONS
                  FACTORY_CALENDAR_NOT_FOUND   = 1
                  FACTORY_CALENDAR_ID_MISSING  = 2
                  CALENDAR_BUFFER_NOT_LOADABLE = 3
                  OTHERS                       = 4
    rgds
    anver
    if hlped mark points

  • Function module  'EDIT_TEXT'. still not working

    first i called  READ_TEXT.
                       EDIT_TEXT.
                      SAVE_TEXT.
                      COMMIT_TEXT.
    PLEASE CHECK THIS CODE ONCE ..PLEASE LET ME KNOW THE PROBLES.
      gv_vlsch = gs_bmw_std_a1020-vlsch.
      gv_lng = 'DE'.
      CALL FUNCTION 'READ_TEXT'
              EXPORTING
              client                          = sy-mandt
                id                            = 'SUBM'
                language                      = gv_lng
                name                          = gv_vlsch
                object                        = 'WORKST'
            ARCHIVE_HANDLE                = 0
            LOCAL_CAT                     = ' '
            IMPORTING
              header                         =  gs_thead
              TABLES
                lines                         = gt_text
          EXCEPTIONS
            ID                            = 1
            LANGUAGE                      = 2
            NAME                          = 3
            NOT_FOUND                     = 4
            OBJECT                        = 5
            REFERENCE_CHECK               = 6
            WRONG_ACCESS_TO_ARCHIVE       = 7
            OTHERS                        = 8
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      DATA:lv_clnt TYPE sy-mandt.
    ********CHANGE 5/7**********
      CLEAR gv_index.
      CLEAR gt_line[].
    SET PF-STATUS 'VIEW'.
      LOOP AT gt_bmw_std_a1020 INTO gs_bmw_std_a1020 WHERE ch = 'X'.
        gv_index = gv_index + 1.
      ENDLOOP.
      IF gv_index GE 2.
        MESSAGE s000.
        leave to screen 0.
        CLEAR gv_index.
      ELSEIF gv_index LT 1.
        MESSAGE s001.
       leave to screen 0.
      ELSE.
        CLEAR gv_index.
        CLEAR gs_bmw_std_a1020.
        READ TABLE gt_bmw_std_a1020 INTO gs_bmw_std_a1020 WITH KEY ch = 'X'.
        IF sy-subrc EQ 0.
          gv_vlsch = gs_bmw_std_a1020-vlsch.
          gv_lng = 'DE'.
          PERFORM read_text.
        ENDIF.
        CALL FUNCTION 'EDIT_TEXT'
          EXPORTING
            display             = ' '
      EDITOR_TITLE        = ' '
            header              = gs_thead
      PAGE                = ' '
      WINDOW              = ' '
           save                = 'X'
      LINE_EDITOR         = ' '
      CONTROL             = ' '
      PROGRAM             = ' '
      LOCAL_CAT           = ' '
    IMPORTING
      FUNCTION            =
      NEWHEADER           =
      RESULT              =
          TABLES
            lines               = gt_text
    EXCEPTIONS
      ID                  = 1
      LANGUAGE            = 2
      LINESIZE            = 3
      NAME                = 4
      OBJECT              = 5
      TEXTFORMAT          = 6
      COMMUNICATION       = 7
      OTHERS              = 8
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    *****************5/7******************
        lv_clnt = sy-mandt.
        CALL FUNCTION 'SAVE_TEXT'
          EXPORTING
            client                = lv_clnt
            header                = gs_thead
      INSERT                = ' '
      SAVEMODE_DIRECT       = ' '
      OWNER_SPECIFIED       = ' '
      LOCAL_CAT             = ' '
    IMPORTING
      FUNCTION              =
      NEWHEADER             =
          TABLES
            lines                 = gt_text
    EXCEPTIONS
      ID                    = 1
      LANGUAGE              = 2
      NAME                  = 3
      OBJECT                = 4
      OTHERS                = 5
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    CALL FUNCTION 'COMMIT_TEXT'
    EXPORTING
       OBJECT                = '*'
       NAME                  = '*'
       ID                    = '*'
      LANGUAGE              = '*'
      SAVEMODE_DIRECT       = ' '
      KEEP                  = ' '
      LOCAL_CAT             = ' '
    IMPORTING
      COMMIT_COUNT          =
    TABLES
      T_OBJECT              =
      T_NAME                =
      T_ID                  =
      T_LANGUAGE            =

    Hi Kranthi,
    I have sample code pls can you compare with this and check what went wrong :
    data: header type thead.
    data: txt_lines type table of tline with header line.
    data: mode(1) type c.
    parameters: p_edit radiobutton group grp1 default 'X',
                p_disp radiobutton group grp1.
    * Set up the text header
    header-tdobject = 'AUFK'.
    header-tdname   = '001000000001'.
    header-tdid     = 'LTXT'.
    header-tdspras  = sy-langu.
    header-tdlinesize = 70.
    * First read the text, if there is any.
    call function 'READ_TEXT'
      exporting
    *   CLIENT                        = SY-MANDT
        id                            = header-tdid
        language                      = sy-langu
        name                          = header-tdname
        object                        = header-tdobject
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      tables
        lines                         = txt_lines
    * EXCEPTIONS
    *   ID                            = 1
    *   LANGUAGE                      = 2
    *   NAME                          = 3
    *   NOT_FOUND                     = 4
    *   OBJECT                        = 5
    *   REFERENCE_CHECK               = 6
    *   WRONG_ACCESS_TO_ARCHIVE       = 7
    *   OTHERS                        = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    if p_edit = 'X'.
      mode = space.
    else.
      mode = 'X'.
    endif.
    * throw editor, allow user to change
    call function 'EDIT_TEXT'
      exporting
       display             = mode
    *   EDITOR_TITLE        = ' '
        header              = header
    *   PAGE                = ' '
    *   WINDOW              = ' '
        save                = 'X'
    *   LINE_EDITOR         = ' '
    *   CONTROL             = ' '
    *   PROGRAM             = ' '
    *   LOCAL_CAT           = ' '
    * IMPORTING
    *   FUNCTION            =
    *   NEWHEADER           =
    *   RESULT              =
      tables
        lines               = txt_lines
    * EXCEPTIONS
    *   ID                  = 1
    *   LANGUAGE            = 2
    *   LINESIZE            = 3
    *   NAME                = 4
    *   OBJECT              = 5
    *   TEXTFORMAT          = 6
    *   COMMUNICATION       = 7
    *   OTHERS              = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    * When user comes back from editor, save the text
    * Only for edit mode.
    check mode = space.
    call function 'SAVE_TEXT'
      exporting
        client                = sy-mandt
        header                = header
    *   INSERT                = ' '
    *   SAVEMODE_DIRECT       = ' '
    *   OWNER_SPECIFIED       = ' '
    *   LOCAL_CAT             = ' '
    * IMPORTING
    *   FUNCTION              =
    *   NEWHEADER             =
      tables
        lines                 = txt_lines
    * EXCEPTIONS
    *   ID                    = 1
    *   LANGUAGE              = 2
    *   NAME                  = 3
    *   OBJECT                = 4
    *   OTHERS                = 5
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    write : 'Hi'.
    Reward pts if found usefull:)
    Regards
    Sathish

  • Creating Attachment using Function Module

    Hi experts,
    My problem here is, I need know the Function Module that is used to Create Attachement in Generic Object Services.
    Currently, i only found this function module: SO_OBJECT_UPLOAD. But i do not really know how to use it.
    Can anyone here advise?
    Thanks
    Lawrence

    This blog: [/people/sergey.breslavets/blog/2007/06/29/create-and-handle-attachments-from-a-bsp-application ] describes how this works for a BSP app. If you scroll down to Method: handleupload and look at item (2) and (3), the describe the basic ABAP parts in this. The functions used here are the same ones used by the Generic Object Services.

Maybe you are looking for

  • BT Vision Box is not picking up the remote

    My BT Vision box has been working fine up until now. The box is no longer picking anything up from the remote control (black). The remote itself is working fine, as the blue light flashes whenever you press a button, however the little blue light tha

  • HP G60-120CA Replacemen​t battery not charging/d​ischarging

    I have an HP G60-120CA laptop, running Windows Vista x64. It's worked reasonably well, aside from a few issues over the years (the original charger died and I've had to clean the fan of dust and re-thermal paste the heat sink a couple of times. All i

  • 27" iMac as display for MacBook Pro 3.1

    Can the above be accomplished? As far as I can see the 27" (which has video in on the miniDP) may only accept a signal in from a later MBP with miniDP conenctor also...? My older 3.1 has the DVI. If on the other hand it does work, where on this earth

  • MP4 Creative Zen MX - 8GB card.

    Hi. I have this > http://merlin.pl/Karta-pamieci-Kings...SFKINSDG82.jpg memory card in my mp4 player. And i cant send an items on it. I dont have it in computer (folder)... I have CD disk with programs. I installed it but i only teached converting vi

  • Web Service to xml to bls to xacute query formatting

    Hi. I have a BLS calling a web service which returns a data set in the xMII XML format. I take that output and put it in a xml transaction output property and try to read it with an xacute query. (obviously I will be doing more manipulations to the d