"IS REQUESTED" IN FUNCTION MODULE

Hello frnds,
I have to copy a function module into subroutine, but in that function module there is a command "IS REQUESTED" which won't work in subroutine. can you help me by giving some solution by providing some command which we can use instead of "is requested"
Thanks in advance
Navneet
[email protected]

hi,
IS REQUESTED check can be done on formal parameters of an FM whether this parameter was used when ur function module is called from a program.
I assume that the field on which IS REQUESTED was used is an optional parameter in your function module.
Let that statement be in the function module but use a flag.
if <field> is requested.
l_flag eq 'X'.
endif.
Now inside ur subroutine you can use flag.
if l_flag eq 'X'.
<the logic of the original code>.
endif.

Similar Messages

  • Tranceport request for function module

    Hi,
    first i have created function group and function module under local class, now i created request for function group, but how to create request for function module, i have to trancport my functionmodule. please do the need full help.
    thanks in advance.
    Radhakrishna

    go to se37
    1.give desired function module
    2.select change or display option
    3. Click -GOTO optin on menu bar and select 'Object Directory entry '
    4.click on object directory entry  and press f6
    5.change package and reponsible person and save it will ask you request finaly you can relese.

  • Transport Request for Function Module

    Hi Gurus,
    I have created custom function module, which has function group, fields, and include. While developing only Function group is collected . But couldn't know how to collect function module and other dependent objects.
    Please assiss me how to collect function module and other dependent objects.
    Thanks
    Ganesh Reddy.

    Hi Ganesh,
    goto SE37, give the functional module and diplay the code
    in the environment on menu bar, you will find option transport request
    Regards,
    Venkatesh

  • Delete a Infocube Request  through Function module

    Hi Experts,
    I need to delete a request in Infocube through Function module. i have written a logic which request we have to delete, but i'm unable to find the exact function module to delete particular request.
    Quick response would be appriciated greatly and points will be assigned.
    Regards,
    Navin Achanta

    Hi,
    All the requests of InfoCube are available in table RSICCONT, so u create a function module to delete a records from this table.
    Hope this helps u a lot.........
    Assigning points is the way of saying Thanks in SDN
    Regards
    Ramakrishna Kamurthy

  • Using function module PT_ARQ_REQUEST_EXECUTE to approve leave requests

    I'm building a screen to approve or reject multiple leave requests using function module PT_ARQ_REQUEST_EXECUTE as the SAP standard program RPTARQAPP does, and this seems to be working fine.  However, I also need to include a note from the approver which is a bit of long text that ends up in table PTREQ_NOTICE.  This is something that RPTARQAPP does not do.
    I cannot find any way of passing this text into PT_ARQ_REQUEST_EXECUTE.  The only way I can find of doing this is to call FM PT_ARQ_REQUEST_PREPARE first (command = PREPARE_APPROVE), update the CURR_NOTICE field it sends back in structure EX_REQUEST, then pass the changed EX_REQUEST structure into FM PT_ARQ_REQUEST_CHECK (command = CHECK_APPROVE)  and then call PT_ARQ_REQUEST_EXECUTE (command = EXECUTE_APPROVE).  This works fine for a single leave request, but when I try to use this process to approve two leave requests the CHECK FM gives me an error on the second record with a message referring to a time conflict with the first message even though the dates on each are not the same.
    I've searched and there are a few posts about these FMs, but I still can't fix this problem.  Has anyone ever dealt with this situation before and found a solution?

    I've replaced the call to FM PT_ARQ_REQUEST_CHECK with the following and it seems to work pretty well.  Though of course it will need a lot more testing.
    STATICS:
        request TYPE REF TO if_pt_req_request.
      CALL METHOD ca_pt_req_header=>agent->get_request
          EXPORTING
            im_request_id     = p_im_request_id
          IMPORTING
            ex_request        = request
          EXCEPTIONS
            request_not_found = 1.
      CALL METHOD request->set_notice
          EXPORTING
            IM_NOTICE               = p_approver_text.

  • Append New Line Item(s) onto the created Purchase Request using Function

    Dear Expert,
    I am trying to append new lines into the created purchase request via Function Module/ BAPI.
    Say, now, the Purchase Request has already 1 line item. And i want to append new line items into
    this purchase request via function module/ bapi.
    Do you know if there is any function module/ bapi exists to do this?
    Thanks.
    Tee

    Hi,
    It's weird.
    I tried on the BAPI_PR_CHANGE, and the return message says that it has successfully changed the PR. But, when i see it via ME53N, it's not being updated.
    Does anyone has sample usage/ code using this BAPI?
    Thanks.
    Tee

  • Function Module not being displayed in the Transport Request

    Hi,
    I Created a FM "RH_ACTIVATE_WFOBJECT_AFTER_IMP"  in my SAP System. After I created due to problem in editing I have deleted the FM and also deleted it from the request.
    I have re created the function module and if I see the object directory entry I find the following
    Identical request locks
    Request              User         Task/request         Object          
                       ****            *****                       R3TR FUGR RHWS  
    In the request I cannot find the function module but only the function group. Please help me to get my function module visible in the transport request.

    Hi ,
    When your creating the FM for first timw with new FGRP then no need to worry .
    You can see only the FGRP in the transport request number and when you move this transport request to further systems your FM automatically transport with the FGRP.
    Next time when your creating a new FM under the FGRP which is already moved to production you can see only your FM name under the transport request.
    When you go to FGRP main program by follwing the path
    FGRP -> Disply FGRP in SE37 you can see the main program of the FGRP there if you see one include with TOP and XX .
    double click on the XX Include.
    there you can see allthe FM under that FGRP.
    Thanks
    Naresh

  • Function modules to create leave request?

    Hi experts,
    In my project I need to create a leave request and trigger workflow for approval. Do you know any function modules existed for this purpose? Or shall we need to create workflow and attach it with inserting IT2001 records?
    Thanks a lot.

    Are you going to use standard SAP Portal application for leave or not?
    If yes there are documents available about ESS configuration for the same and you can assign the standard workflow or copy and make the required chnages then assign it in configuration.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/108c31e7-b6a7-2d10-3692-c1a9f7a5c4dc?QuickLink=index&overridelayout=true
    Regards
    Ajay

  • Function Module - Transport request

    Hi Friends,
    I have changed one z function module and created on transport request.In transport organizor, Under the task number, my function module is displayed. No other object is included in the task list. Should i add any other object before release? for example report means we have to add text elements, source code, documentation, report category etc.
    Thanks.

    please   go though the request no in the  se10   ... there   go the first  menu  option 
    request /task   -> complete check -> 3  options 3  time  check  it will give  you message  s   then   by selecting the request   do it  ..
    then transport it   .... 
    becuase   FM is  global  object  it doesn't require any other   objects like
    (report  , bdc  , scipts  ,... )   other than Function Group  ...
    Girish

  • Function module related to release transport request

    Hello experts,
    I am working on product management system hierarchy. The hierarchy is like
      PRODUCTSSUBPRODUCTVERSIONPACKAGE
    we can create transport for VERSION directly from CONTEXT MENU. Next step is download transport to client PC I have done with it. FInal stage to release transport directly from context menu. For this i am searching for appropriate function module. If anybody know which function module to be used for transport request release please share it with me.
    Thanks,
    Avadhut

    Hi,
    You can use TR_RELEASE_REQUEST to release a transport request directly.
    The class CL_CTS_REQUEST is also worth looking at.

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

  • Request number of a function module.

    Hi Experts,
    Can anybody plz send me the table where the request number of a function module get stored.
    (Function groups are stored in E071,But i need the request number for function module.)
    If any function module for the same plz send it
    Regards,
    Anoop Chandran

    Hi Martin,
    My scenario  is ;
    i have 2 fn modules
    Fn mod1 and Fn mod2 in fn group A
    and i transported this to another server.
    now i changed fn mod1 and transported.
    so the request number of fn mod 1 get changed.
    So my req is to not based on fn group.
    And it depends on fn modules.
    Can u plz gv me some idea to get the request number (tables or fn mods) of fn module??
    Regards,
    Anoop Chandran

  • Does R3 have a report or function module to process payments requests?

    HI All,
    I want R3 report or function module which will receive payment requests from vendor or customer and then procees it depending on the data.
    Does R3 have such a report or function module to process payments requests?
    Please help me.
    Thanks.

    yes SAP as got a function for this
    you can you use trannsaction code /nF111
    for these purposes

  • RFC Function module-With Only Request message

    Hi
    i need a RFC with only Request message and Response message is not required.
    please help me, how to create a RFC function module with out Response message, and it should contain only Request message.
    i have created RFC in this way:
    RFC doesn't contain neither import nor export parameters. and i have defined one table in TABLE tab which refers to a ztable created already.
    when i imported RFC into XI i came to know that RFC has both Request and Response messages, but i don't need Response message.
    Thanks in advance..help would be appreciated
    Regards,
    Rajesh

    Thankx Michal,
    I have written ZRFC this way:
    insert ZMM_AUTO_GR from INPUT_TABLE .
      if sy-subrc = 0.
        commit work.
      else.
       rollback work.
    im not using neither import nor export parameters..but using only tables parameters. but when imported in XI im getting same table  structure in both request an response.
    please suggest what changes required in above code to invoke my ZRFC in async way.
    you will not get any response in XI- what chages required in my code to dnt get .reponse in XI.
    appreciate your help.
    Regards,
    Rajesh.

  • How to release a transport request with warnings using a function module?

    Hi,
    I want to release a transport request(which has some warnings) using some function module .
    The warnign that i get when i try to release the Transport Request manually is "not all objects could be locked..."
    Which function module can I use so i can release such a transport request?
    I am currently using TR_RELEASE_REQUEST but I am unable to release the TR, it throws an exception.
    Also i wouls assume that the function module mentioned would take care of releasing all the unreleased task
    under the request.
    Regards,
    Bikash.

    Hello Bikash
    As an alternative (to cope with the warnings) you may use TRINT_RELEASE_REQUEST.
    However, since this fm offers only a single task/request as IMPORTING parameter you need to take care about unreleased tasks yourself. Looking at SE09/SE10 even there you do not have the option the release a request including all its tasks.
    Regards
      Uwe

Maybe you are looking for