PO Release Reject Function Module

Hello All,
One can reject a PO Release using ME29N, does anybody know of a function module or sequence of function modules to achieve this ? The only BAPI available is for Release, but I couldnt find anything on rejecting release.
I havent tried a BDC, not sure if it will work with Enjoy Screens. Any experiences ?
Regards,
Parag.

Hi parag,
      Use following  fun modules to reject the purchase order.
                       BAPI_PO_RESET_RELEASE .
Regards
Eswar Reddy

Similar Messages

  • CU65 Variant Function cannot be released - check function module interface

    Hi ,
    Getting this error while Releasing the variant Function in CU66. Function Module trigerred by this function is of the same name as well as correctly acitvated and released , but while releasing the Function I get this error :  'Function cannot be released - check function module interface' . Following are two characeteristics that are maintained in the variant function :
    1. Customer_Type
    2. Maintenance_Contract
    While executing the Function Module alone I get Raise Inernal Exception i.e it is not identifying the argument name 'Maintenance_Contract' in the FM 'CUOV_GET_FUNCTION_ARGUMENT' exception
    Below is the code for reference . Pls point out if any mistakes :
    ""Local Interface:
    *"  IMPORTING
    *"     REFERENCE(GLOBALS) TYPE  CUOV_00
    *"  CHANGING
    *"     REFERENCE(ZQUERY) TYPE  ZQUERY
    *"     REFERENCE(ZMATCH) TYPE  ZMATCH
    *"  EXCEPTIONS
    *"      FAIL
    *"      INTERNAL_ERROR
    " Data Declaration
    DATA : l_main LIKE CUOV_01-atwrt,
             l_cust LIKE CUOV_01-atwrt.
    " Get value of Input Characteristic Maintenance Contract
      call function 'CUOV_GET_FUNCTION_ARGUMENT'
        exporting
          argument            = 'MAINTENANCE_CONTRACT'
       IMPORTING
          SYM_VAL             = l_main
        tables
          query               = ZQUERY
        EXCEPTIONS
          ARG_NOT_FOUND       = 1
      if sy-subrc <> 0.
      RAISE INTERNAL_ERROR.
      endif.
      " Get value of Input Characteristic Customer Type
      call function 'CUOV_GET_FUNCTION_ARGUMENT'
        exporting
          argument            = 'CUSTOMER_TYPE'
       IMPORTING
          SYM_VAL             = l_cust
       tables
          query               = ZQUERY
        EXCEPTIONS
          ARG_NOT_FOUND       = 1
      if sy-subrc <> 0.
      RAISE INTERNAL_ERROR.
      endif.
       IF l_main EQ 'NO'.
        IF l_cust EQ 'CURRENT'.
          l_cust = 'NEW'.
        ELSEIF l_cust EQ 'VAR CURRENT'.
          l_cust = 'VAR NEW'.
         ENDIF.
         ENDIF.
    " Set value for the output characteristic
         call function 'CUOV_SET_FUNCTION_ARGUMENT'
           exporting
             argument                      = 'CUSTOMER_TYPE'
             vtype                         = 'CHAR'
             SYM_VAL                       = l_cust
           NUM_VAL                       =
           tables
             match                         = ZMATCH
           EXCEPTIONS
             EXISTING_VALUE_REPLACED       = 1

    ZMATCH and ZQUERY are two table types created in SE11 , both of type CUOV_01.

  • Request having function group released but function module attribute shows not released

    Hi experts,
                   I am a beginner.
                  There is a transport request in which my function group and other objects were present . This transport request and its task were released . But if i check the attributes section of the function module that is present in that function group , it shows not released .
    Is there some problem ? did the function module not get released with its group? It wasn't showing anywhere in the request even though i had added it during creation.
    Here is the image :
    Thanks,
    Unnati

    Hi,
    Those two meanings of 'released' are unrelated. Don't worry about it.
    Also, a function module sometimes does not explicitly appear in a transport request, if the function group is already in there.
    cheers
    Paul

  • Unable to release function module

    Working on t001 table , made a structure and use it in function module .
    importing and export and define the structure in that , save check and activate it.
    sucessfully activated.
    then my problem started.
    After successful activation, Go to the attributes tab. Go to Function module->Release->Release.
    but the last release is hide there.
    Pls enhance what are the problem or how can i release the function module.
    regards
    kamal.

    Hi
    A function module can be released once
    Max

  • How to release function module...

    Hi All,
       I have created one function module and activated that. How to release that function module?
      But Release option is in deactive state...how can i release the FM....please let me know the resons for that.
    thank you.

    hi,
    change to edit mode  and come to attribute tab then you release option will be activated and then you can release it
    thanks
    shivraj
    Edited by: ShivrajSinha on Feb 8, 2010 11:14 AM

  • Function module WWW_ALV_CALL is not released for the Internet

    Hi
    I am facing this error Function module WWW_ALV_CALL is not released for the Internet and Only user SAP can release the function module.
    Best Regards
    GAGAN

    hi,
    This Web based calls are not available anymore in Netweaver 2004s/7.0. 
    More information in SAP-Note: 910202
    Hope this helps
    regards
    Tobias

  • Function module to cretae Reference Operation

    Is there any function module which creates routing with type 'S' (Reference Operation Set) , I tried BAPI_ROUTING_CREATE and others but these create routing with type 'N' (Routing).

    Hi
    This is the functional module for your requirement..
    BAPI_REFSETOFOPERATIONS_CREATE
    Deatils
    Method               Create
    Business object      RefSetOfOperations
    Short description    Creation of a reference operatio
    New in Release       46C
    Function module      BAPI_REFSETOFOPERATIONS_CREATE
    ALE message type     REFSETOFOPERATIONS_CREATE
    Rewards will be appriciated..
    BR
    Sumit Sharma

  • Custom Function Module for the New Process Codes

    I want to distribute the custom table data . For that i have written the program using MASTER_IDOC_DISTRIBUTE. I have created the custom message & idoc types along with their assignments.
    I got struck up at the process code. I have to assign the function module for that process code. Can anyone kindly help me in writting the code at that function module ?

    Hi Friends,
    My requirement is , i need to transfer the table records. For that i have created the Message/Idoc Types and also created the Partner profile and the Distribution model view .....all alll i have done.
    My doubt is , in the we20, at the outbound parameters , i can give the Message/Idoc types that i have created. Ok thats fine
    But at the inbound parameters, i have to give the inbound process code. So i have created the Inbound process code. As we know that for every process code a function module is attached, now i have to create the function module which posts the records in receiver side.
    so 1. Does the Function module need to be RFC Enabled ?
         2. Do we need to create Object type in SWO1 once i
                  create and release the function module ?

  • BAPI Function module : Unable to search from Netweaver Studio

    Hallo,
    I developed a small BAPI Function module GetCarList etc using the tutorial <a href="http://www.sappoint.com/abap/bapiintro.pdf">Introduction to BAPIs</a> . This ofcourse is also available in help.sap.com for GetFlightList etc.
    Steps Followed :
    -o developed RFC based Function Module. (BAPI supported)
    -o activated it, released it.
    -o created a alias in the BAPI explorer, added API methods, parameters and released all of them
    After i activated and released the function module, i could see it in the BAPI Explorer (Transaction SWO1) as released( ready to be used). But when i tried to search it from Netweaver Studio (to import it as a WebDynpro Model) i could not find it.
    -o checked if the BAPI method is available or not in the BAPI Explorer list. (it is available and released)
    -o Tried to import BAPI Func.Module - like 'GetFlightList' of Table SFLIGHT (comes with SAP examples), [ but could not] .
    I have no idea what the problem could be. do let me know.
    thanks
    Sreenivas.

    Hi all,
    i did check the SE37 or SE80 transaction to find out whether the current module is Remote call enabled or not. Adn well it was already RFC set. I have no idea what had happened in the last week, today it works. Now i can import the function module into netweaver. anyways thanks Achim for the support.
    Sreenivas.

  • Documentation Required  for Function Module

    Hi,
    Can Provide me the documentation how to create function module in ABAP.
    Regards
    Ravi

    hi,
    BAPI Step by step Guidance
    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 (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 u2018Pau2019. All remotely enabled functional modules MUST be Pa enabled, where Pa means u2018Passed by Valueu2019 and if you donu2019t select u2018Pau2019, 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 u2018Pau2019 meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Ram  .
    Edited by: Ramakullay Challa on Jun 2, 2009 10:31 AM

  • 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

  • Function Module to Reject PO Release

    Hello All,
    One can reject a PO Release using ME29N, does anybody know of a function module or sequence of function modules to achieve this ? The only BAPI available is for Release, but I couldnt find anything on rejecting release.
    I havent tried a BDC, not sure if it will work with Enjoy Screens. Any experiences ?
    Regards,
    Parag.

    As per standard SAP practice, rejection is only possible for Purchase Requisitions only. Your requirement is called as release cancel.
    There is only one function module available for both release and cancel and you can make use of the same:
    EXIT_SAPLEBNF_005
    Thanks,
    Shree

  • 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

  • Function Module giving pruchase requisition release code ?

    Hi everyone !!
    I am using the FM BAPI_REQUISITION_RELEASE_GEN in order to realease a purchase requisition, this works well as I give it a hard-coded value for input parameter REL_CODE.
    However in our company an intricate set of release strategies imposes that I should have a dynamic value for this release code.
    So I've been looking for a function module that would return the possible values of the release codes with either the requisition number as input or other parameters found in table EBAN !
    Anyone has any suggestions as to which FM or BAPI I could use to achieve this goal?
    Best regards !
    Ced

    Even i passed only currency then also i got the below errors.
    1-> No instance of object type PurchaseOrder has been created. External reference:
    2-> PO header data still faulty
    3-> No master record exists for vendor 100017
    4-> Vendor 100017 does not exist
    5-> Can delivery date be met?
    how to rectify these errors. Is it any functional problem or data passing problem
          header-comp_code = wa_dbtab-bukrs.
          header-doc_type   = wa_dbtab-bsart.           "Standard Order
          header-creat_date = sy-datum.
          header-vendor     = wa_dbtab-lifnr.
          header-purch_org  = wa_dbtab-ekorg.
          header-pur_group  = wa_dbtab-ekgrp.
          header-currency = wa_dbtab-currency.
    *POPULATE HEADER FLAG.
          headerx-comp_code  = c_x.
          headerx-doc_type   = c_x.
          headerx-creat_date = c_x.
          headerx-vendor     = c_x.
          headerx-purch_org  = c_x.
          headerx-pur_group  = c_x.
          headerX-currency = c_x.
         headerX-currency_iso = c_x.
        ENDIF.
    *POPULATE ITEM DATA.
        item-po_item  = wa_dbtab-item.
        item-material = wa_dbtab-matnr.
        item-plant    = wa_dbtab-werks.
        item-matl_group = wa_dbtab-mat_grp.
        item-quantity = wa_dbtab-menge.
        item-net_price   = wa_dbtab-netwr.
        APPEND item.
        CLEAR item.
    *POPULATE ITEM FLAG TABLE
        itemx-po_item    = wa_dbtab-item.
        itemx-po_itemx   = c_x.
        itemx-material   = c_x.
        itemx-plant      = c_x .
        itemx-matl_group = c_x.
        itemx-quantity   = c_x .
        itemx-net_price  = c_x.
        APPEND itemx.
        CLEAR itemx.

  • Function module/BAPI to release a Business partner in GTS

    Dear experts,
    I have a requirement where in I need to release business partners programmatically. I request you to let me know if any function modules/BAPIs or any other method is available (except BDC).
    I know the manual process of releasing them, and we were restricted to use BDC.
    Thanks in advance.
    Best Regards,
    Vishal

    Hello Vishal,
    Currently the release logic is inside subroutine instead of FM or BAPI.
    You could refer to:
    Report : /SAPSLL/LCON_BLOCKED_BPF01
    Form   :  deblock_partner_masters
    Best regards,
    Vincent

Maybe you are looking for