Agent assignment through BADI

Hi All,
I am implementing BADI BBP_WFL_ADMIN_APPROV for determining approvers in confirmation. I have written following code for testing
method IF_EX_BBP_WFL_ADMIN_APPROV~ADMIN_APPROVER_GET.
DATA: wa_agent TYPE swhactor.
wa_agent-objid = '501696440'.
wa_agent-otype = 'US'.
append wa_agent to et_agent.
endmethod.
When I doing confirmation, it is stopping at this badi and populating et_agent but when I go to approval preview it shows " Agent assignment does not exists".... The workflow WS10400020 however gets started.
Please guide me what to do for solving this problem.
Regards
Praveen Ghosh

Hi,
Please run the FM BBP_PDH_WFL_ADMIN_GET in test mode or test with debug mode.
Please also double check the task is Genaral Task.
Regards,
Masa

Similar Messages

  • Approval WF after SC is saved: No selected agents assigned

    Hi all,
    We are in SRM 7.0 and we have the following problem:
    We fill approval_table informing fields through BADI GET_REMAING_APPROVERS:
    approval_index = 1
    approval_agent = USUSER
    name and description.
    (we only put one approver to do the testing easier)
    But checking workitem via SWI1 we see Approving shopping cart step is READY but no Agents are assigned.
    I have been looking for OSS notes and other threads but I am not able to find the solution
    Do you have any idea?
    Thx in advance.

    Solved.
    We have changed from app wf to process wf just to check if with the standard process it works.
    It worked so we changed again to our app wf (badi) and now it is working without to change anything.
    X-File but at least it works now

  • Unable to delete agent assignment from Standard Task 8267 DECISION

    Hi All
    In transaction PFTC_CHG I'm trying to Delete Agent Assignment (Shift + F2), the screen simply refreshes and the action is not performed - the user is not deleted from the Demo Workflows parent folder? I'm not sure how to change or remove this entry? Authorisations check out fine.
    Regards,
    Adrian

    Hi ,
    Go through below links ..i am sure you will find something helpful.
    How to delete agents
    remove assigned agents
    Regards,
    Himanshu Joshi

  • Function Module to Insert Agent assignment upon creation of Responsibility

    Hi Friends,
    Using BDC I am able to create Resposibilities in Responsibilities tab of PFAC tcode.
    I need to insert Agent assignment under created Responsibility.
    Actually In Tcode PFAC I enter Rule then select change button this will lead us to next screen there i select Responsibilities tab
    there I select create button then it will give a pop-up in that i will enter Object abbr. and Name then i will select continue.
    then next i will enter category then select save.
    Up to this using recording I am able to create Responsibilities but here i need to come back and i need to select just now created
    Responsibility and i need to select insert agent assignment icon then it will give popup there i need to select Orgnizational unit then continue then it will give small popup ther i need to give search term (what ever we entered in Object abbr.) then continue again one popup will come ther we need to select that Org.unit check box then continue then it will one more popup there i need to select create then it will be inserted under Responsibilitty.
    In the above entire explanation I am able do upto  create Responsibilities but to insert agent assignment we need to come back after save but it is not possible through Recording because after save Recording will be ended.
    So could you please guid me how to insert agent assignment under just created Responsibility.
    If there is any function module to do that please suggest me .
    Thanks
    Chandu

    Hi,
    I tried like that also.
    Whenever we need to insert agent assignment under just created Responsibility we need to select just created responsibility
    created by first BDC . But in seccond BDC WITH TCODE OOCU_RESP Recording is not capturing that action (selecting just created Responsibility).
    It is giving the message 'You did not select a valid object' in the status bar.
    So It is unable to insert agent assignment under responsibility.
    I think there would a function module which insert agent assignment under selected responsibility.
    If anybody knows please suggest me or am I making any mistake ?
    If you would like to see my code pls find below.
    *& Report  YCRM_CREATE_REPBLT_AGENT
    REPORT  ycrm_create_repblt_agent.
    *Selection Screen
    PARAMETERS : p_rule TYPE pdtask-seark OBLIGATORY,
                 p_file TYPE rlgrap-filename OBLIGATORY.
    *Data Declarations
    TYPES : BEGIN OF ty_resp,
            short    TYPE p1000-short,
            stext    TYPE p1000-stext,
            category TYPE ro_expr, "EDIT_BIND_DEF-EXPR_LOW(02),
            END OF ty_resp.
    DATA : it_resp TYPE TABLE OF ty_resp,
           wa_resp TYPE ty_resp,
           p_file1 TYPE string.
    DATA : it_bdcdata    TYPE TABLE OF bdcdata,
           wa_bdcdata    TYPE bdcdata,
           it_bdcmsgcoll TYPE TABLE OF bdcmsgcoll,
           wa_bdcmsgcoll TYPE bdcmsgcoll.
    *Constants Declarations
    CONSTANTS : c_x        TYPE c VALUE 'X',
                c_tcode(4) TYPE c VALUE 'PFAC',
                c_mode     TYPE c VALUE 'A'.
    *AT SELECTION-SCREEN event for providing f4 help for input file
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM file_on_f4.
    *Start of selectin event.
    START-OF-SELECTION.
    File Upload
      PERFORM upload_file.
    *BDC Logic
      PERFORM bdc_to_create_rep.
    *&      Form  BDC_DYNPRO
          text
         -->P_0061   text
         -->P_0062   text
    FORM bdc_dynpro  USING    fp_program "value(p_0061)
                              fp_dynpro. "value(p_0062).
      CLEAR wa_bdcdata.
      wa_bdcdata-program  = fp_program.
      wa_bdcdata-dynpro   = fp_dynpro.
      wa_bdcdata-dynbegin = c_x.
      APPEND wa_bdcdata TO it_bdcdata.
    ENDFORM.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
          text
         -->P_0066   text
         -->P_0067   text
    FORM bdc_field  USING    fp_fnam "value(p_0066)
                             fp_fval. "value(p_0067).
      CLEAR wa_bdcdata.
      wa_bdcdata-fnam  = fp_fnam.
      wa_bdcdata-fval  = fp_fval.
    *WA_BDCDATA-DYNBEGIN = C_X.
      APPEND wa_bdcdata TO it_bdcdata.
    ENDFORM.                    " BDC_FIELD
    *&      Form  FILE_ON_F4
          text
    -->  p1        text
    <--  p2        text
    FORM file_on_f4 .
      CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
        EXPORTING
          field_name    = 'P_FILE'
        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.
    ENDFORM.                    " FILE_ON_F4
    *&      Form  UPLOAD_FILE
          text
    -->  p1        text
    <--  p2        text
    FORM upload_file .
      p_file1 = p_file.
      CALL METHOD cl_gui_frontend_services=>gui_upload
        EXPORTING
          filename                = p_file1
          has_field_separator     = 'X'
        CHANGING
          data_tab                = it_resp
        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
          not_supported_by_gui    = 17
          error_no_gui            = 18
          OTHERS                  = 19.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " UPLOAD_FILE
    *&      Form  BDC_TO_CREATE_REP
          text
    -->  p1        text
    <--  p2        text
    FORM bdc_to_create_rep .
      LOOP AT it_resp INTO wa_resp.
        REFRESH : it_bdcdata,
                  it_bdcmsgcoll.
    *Screen 0600
        PERFORM bdc_dynpro      USING 'SAPLRHWS' '0600'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'PDTASK-SEARK'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=AEND'.
        PERFORM bdc_field       USING 'PDTASK-SEARK'
                                       p_rule. "'90000159'.
    *Screen 0040
        PERFORM bdc_dynpro      USING 'SAPLRHWS' '0040'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=RESP'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'HRS1000-SHORT'.
        PERFORM bdc_field       USING 'HRS1000-SHORT'
                                      'Z99999999972'.
        PERFORM bdc_field       USING 'HRS1000-STEXT'
                                      'Category (RUN -SUPPORT) + C&PS Web'.
        PERFORM bdc_field       USING 'HRS1203-ACTOR_FLAG'
                                      'R'.
    *Screen 0040
        PERFORM bdc_dynpro      USING 'SAPLRHWS' '0040'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=INSE'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'DATESET'.
        PERFORM bdc_field       USING 'DATESET'
                                      'O'.
    *Screen 0300
        PERFORM bdc_dynpro      USING 'SAPLSPO4' '0300'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'SVALD-VALUE(02)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=FURT'.
        PERFORM bdc_field       USING 'SVALD-VALUE(01)'
                                       wa_resp-short. "'PL-BK'.
        PERFORM bdc_field       USING 'SVALD-VALUE(02)'
                                       wa_resp-stext. "'Plan - BendixKing Team'.
    *Screen 0200
        PERFORM bdc_dynpro      USING 'SAPLRHUZ' '0200'.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                      'EDIT_BIND_DEF-EXPR_LOW(02)'.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=SAVE'.
       PERFORM bdc_field       USING 'P1000-BEGDA'
                                 '23.03.2011'.
       perform bdc_field       using 'P1000-ENDDA'
                                 '31.12.9999'.
        PERFORM bdc_field       USING 'P1000-SHORT'
                                       wa_resp-short. "'PL-BK'.
        PERFORM bdc_field       USING 'P1000-STEXT'
                                       wa_resp-stext. "'Plan - BendixKing Team'.
        PERFORM bdc_field       USING 'EDIT_BIND_DEF-EXPR_LOW(02)'
                                       wa_resp-category.        "'z11'.
        CALL TRANSACTION c_tcode USING it_bdcdata
                                 MODE c_mode
                                 MESSAGES INTO it_bdcmsgcoll.
        IF sy-subrc <> 0.
          MESSAGE i001(ymsg)."Error Message
         ROLLBACK WORK.
        ELSE.
          REFRESH : it_bdcdata,
                    it_bdcmsgcoll.
    **screen 0410
          PERFORM bdc_dynpro      USING 'SAPLRHUZ' '0410'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'P1000-OBJID'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CHG'.
          PERFORM bdc_field       USING 'P1000-OBJID'
                                         p_rule. "'90000162'.
    **screen 0420
          PERFORM bdc_dynpro      USING 'SAPLRHUZ' '0420'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=RELI'.
          PERFORM bdc_field       USING 'DATESET'
                                        'O'.
    **screen 0110
          PERFORM bdc_dynpro      USING 'SAPLRHW0' '0110'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CONT'.
    **screen 0100
          PERFORM bdc_dynpro      USING 'SAPLRHWL' '0100'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'PCHDY-SEARK'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=CONT'.
          PERFORM bdc_field       USING 'PCHDY-SEARK'
                                         wa_resp-short. "'PL-BK'.
    **screen 0120
          PERFORM bdc_dynpro      USING 'SAPMSSY0' '0120'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 '04/03'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENTR'.
    **screen 0400
          PERFORM bdc_dynpro      USING 'SAPLRHUA' '0400'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=INSE'.
    *perform bdc_field       using 'BDC_CURSOR'
                                 'PERIOD-BEGDA'.
          PERFORM bdc_field       USING 'PERIOD-BEGDA'
                                        '29.03.2011'.
          PERFORM bdc_field       USING 'PERIOD-ENDDA'
                                        '31.12.9999'.
          CALL TRANSACTION 'OOCU_RESP' USING it_bdcdata
                                       MODE c_mode
                                       MESSAGES INTO it_bdcmsgcoll.
          IF sy-subrc <> 0.
            MESSAGE i001(ymsg)."Error Message
            ROLLBACK WORK.
          ELSE.
            MESSAGE i000(ymsg)."Success Message
          ENDIF.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " BDC_TO_CREATE_REP
    Guide me on this.
    Thanks

  • Agent assignment for a task group

    Hi,
    I have created a TAsk group which has two workflows inside. But when go for the agent assignment for the task group via OOCU tcode, it is not showing the workflows under the task group.
    Plz let me know wht may be the problem...
    Thanks,
    Sivagami

    Hi,
      I am not able to assign agent through task customization [ OOCU Tcode ]. But I am able to assign in PFTC tcode.
      Any clues?
    Thanx,
    Sivagami

  • PO release - Wrong agent assignment issue

    Hello friends,
    i have a strange issue with PO release strategy . A particular PO has been assigned to release group EG and release code F2 .
    But F2 has no agent assignment defined . However , The PO approval is going for another agent belonging to release code F1 . there are no user exist or BADI defined .
    Please assist me what could be the issue ?  i do not have debug access and the data is not consistent on test system .
    thanks
    Raghu V

    Hi,
    Which Workflow is used?
    If it is the standard one then rule 20000027 is used for agent determination.
    Kind regards, Rob Dielemans

  • Can u xplain what to do agent assignment in my current situation

    Hi...
           There is a workflow where if an employee is recruited then a mail should be triggered to an unit where there will be certain positions. So, here when what is the agent i should assign for the task. The agent should be assigned through a rule where a condition should be cheked and the responsbility should be found.
                        And what is the recipient type i should assign while i am sending a mail.
    Please help me out of this situation

    Hi aditya,
               It is an HR process and the unit to whom mail will be triggered have SAP userids......
                The scenarion what i did is...created one rule with agent determination responsbilities and checked the condition there. After that when i am trying for agent assignmnet to that rule by organisation structure. Will the mail be triggered to all the persons who are in that Structure??........
                          I want a DB table which displays the ORG Strcutres
    Plss help me out

  • Changes in Customizing for agent assignment do not transport well

    Hi,
    We have made changes in some tasks regarding agent assignment (we select the option 'General Task' in the Attributes button). This generates a Customizing request.
    After releasing these 2 requests (Customizing and Workbench), we transport them from Development to Test. But when checking the new workflow in Test, the Customizing modifications regarding agent assignment do not occur.
    We have tried the two possible sequences of transporting the requests: first Customizing and then Workbench, then the other way, with same results.
    Is there any specific order that should be followed to correctly transport Customizing and Workbench requests?
    I appreciate your help!
    Regards,
    Ivson

    Thanks a lot,
    Our wf doesn´t use organizational structure, but checking the transport logs as you suggested (that´s what I should've done first!), has shown an error of type 12 in the last Customizing requests we have sent.
    The log error's header says
    'Method execution 08.09.2006 16:01:39   (12) Canceled',
    Going to the details,
    'Execution of programs after import (XPRA)'
    'Ended with return code:  ===> 12 <==='
    There is also one Workbench request with the same type of error.
    All clues are welcome,
    Best regards,
    Ivson

  • Update ZPURCHASE THROUGH BADI .. at the time of saving Purchase Order

    Dear All Gurus,
    I have a situation wherein i have to save the Purchase Order Details in My DB table (ZPURCHASE ) at the time of Purchase Order Creation through BADI...
    Fields of ZPURCHASE are (Mandt,EBELN,BUKRS)
    Can some one guide me how can i achieve this..
    I tried doing it through User Exits.. i have written a piece of code when saving the purchase order but my problem is .. The purchase order numbers are generated only after SAVE is complete..
    The other alternative i want to try is through BADI.
    Looking forward for your reply.
    Thanks !!

    > I have a situation wherein i have to save the Purchase Order Details in My DB table (ZPURCHASE ) at the time of Purchase Order Creation through BADI...
    > Fields of ZPURCHASE are (Mandt,EBELN,BUKRS)
    I have no solution for your actual problem (wrong forum, you should try the MM forum) but I wonder why you just don't use the data that is already there in EKKO and EKPO?
    Markus

  • In a Real time project what would be the agent assignment attribute setting

    Dear Experts,
    I have never worked on a workflow project. I have been only practising workflow on a IDES system. I would like to know in a real live production system what settings do we use when we define the agent assignment at the task level? Do we set the attribute as GENERAL TASK always?
    To be more specific as in the task attributes we have many options like
    GENERAL TASK
    GENERAL FORWARDING ALLOWED,
    GENERAL FORWARDING NOT ALLOWED AND
    FORWARDING NOT ALLOWED.
    From the first three options which is most generally used in a real time projects?
    AND
    is it necessary to always set the attribute as GENERAL TASK before transporting the workflow definition to other systems from the development system?
    appreciate your help on the same.
    cheers
    chky

    Hello Learner,
    It depends on the requirement, but in most of the cases we assign the task as general task.
    To have some more information on the various attributes,
    ·        General task
    If you define a task as a general task, all users can execute the task. This is useful if the task is used in a workflow and you only want to define the recipients in the step definition. A recipient can forward associated work items to all users.
    Work items whose tasks are defined as general tasks and for which no responsible agents or default rules are defined are offered to all users of the SAP System for execution in their Business Workplaces.
    ·        General forwarding allowed
    A work item that represents a task with this property can be forwarded by one of its recipients to all users, even if they are not possible agents of the task.
    ·        General forwarding not allowed
    A work item that represents a task with this property can be forwarded by one of its recipients only to the possible agents of the task.
    ·        Forwarding not allowed
    A work item that represents a task with this property cannot be forwarded by one of its recipients.
    Hope this will help.
    Regards,
    Sam

  • Additional tab at header level  in ME21N through BADI ME_GUI_PO_CUST

    Hi,
    I want to have additional tab at header level  in ME21n through BADI ME_GUI_PO_CUST.  But after all effort I am not getting display of  tab.  Let me explain what i did till now
    1. Appended  table EKKO with field
    2. Create one function Group -under that
    A. Created one Include u2013Paste the code given
    DATA: call_subscreen   TYPE sy-dynnr,
          call_prog        TYPE sy-repid,
          call_view        TYPE REF TO cl_screen_view_mm,
          call_view_stack  TYPE REF TO cl_screen_view_mm OCCURS 0,
          global_framework TYPE REF TO cl_framework_mm,
          global_help_view TYPE REF TO cl_screen_view_mm,
          global_help_prog TYPE sy-repid.
    FORM SET_SUBSCREEN_AND_PROG *
    --> DYNNR *
    --> PROG *
    --> VIEW *
    --> TO *
    --> CL_SCREEN_VIEW_MM *
    FORM set_subscreen_and_prog USING dynnr TYPE sy-dynnr
    prog TYPE sy-repid
    view TYPE REF TO cl_screen_view_mm.
    call_subscreen = dynnr.
    call_prog = prog.
    call_view = view.
    ENDFORM. "set_subscreen_and_prog
    B. Created one screen  (9000)
    3. Implemented BADI ME_GUI_PO_CUST and paste the code.
    data: ls_subscribe like line of re_subscribers.
    CHECK im_application = 'PO'.
    CHECK im_element = 'HEADER'.
    CLEAR re_subscribers[].
    ls_subscribe-name = ' ZMMSCR1'.
    ls_subscribe-dynpro = '9000'.
    ls_subscribe-program = ' ZMMSCR1'.
    ls_subscribe-struct_name = 'EKKO'.
    ls_subscribe-label = text-001..
    ls_subscribe-position = 15.
    ls_subscribe-height = 7.
    append ls_subscribe to re_subscribers.
    Please help me what s going wrong .and what else I will do to get success.
    Edited by: Vishal A Vijaywargia on Jul 29, 2009 2:24 AM

    Hi Prosengit,
    I am not aure about u r BADI,
    BUt last week i have custom tab in the PO header data using this enahncement 'MM06E005'.
    IN thi senhancement u have thrre screen exits.In this enhancement
    SAPMM06E        0111 CUSTSCR1 SAPLXM06        0111 Subscreen: PO item
    u can add subscreen and u can add u r own fields here .
    and u can write u r code in 'EXIT_SAPMM06E_006'.
    if u want to change the title of the program.
    Go to program SAPLXM06 then go to text element give text symbol no as '111' and u can change the title of u r tab.
    I hope this solves u r problem.

  • Agent Assignment Doesn't work For Some Users

    Hi all,
    In OOCU_RESP there are four agents in a responsibility. But only one (say A) of the four gets tasks in Inbox. The other three (say B, C, D) get nothing.
    I removed A from the responsibility and B, C, D still get nothing. In SWIA the log shows no agent assigned. But in SWI2_DIAG there is no error info.
    In OOCU_RESP, Simulate rule resolution, i can get all 4 agents assigned.
    I feel like there is something wrong with B, C, D's SAP account settings. But I have no clue what it can be. Advise please!

    Hi Dayong
    Please check the Agent Assignment settings of the task used for sending the WI to the users. Is the task set to General task or specific agents are listed there?
    PFTC->Supply the Task-> Additional Data -> Agent Assignment
    Also, check if these agents are listed in Excluded agents in the Workflow Step.
    regards,
    Modak

  • Agent Assignment Missing

    Hi Experts,
    I have created a custom workflow which has a user decision step. We have used a rule for agent assignment and we have also maintained General task: can be edited by all users. We have implemented deadline monitoring for this step.
    When we moved this workflow to QA, agent assignment (General task: can be edited by all users) was not transported.
    Now when we executed the workflow, agent was not determined, but still deadline emails were triggered.
    Is this correct ? Shouldnt the workflow go into an Error state as no agent was determined ?
    Note: I know that we can transport agent assignment using RE_RHMOVE30.
    Thanks.

    Requested start states , when the workitem must be  sent to user's inbox, In Simple, it mentions after how much interval of time the workitem will in the user's inbox
    In your case after 3 Mins of.... (check it)  the workitem will be in the user's inbox,
    and coming to Latest End  , it is a grace period to user to act on the workitems, if user does not act on the workitem then this deadline is reached, in your case teh suer has give one day , if he does not act on the workitem with in one day the deadline is reached.

  • Calling Bapi through BADI gives data statement error

    Dear Experts,
    I am trying to call BAPI through BADI ME_PROCESS_REQ_CUST --> process_item.
    I get an error stating that "The addition OCCURS no longer supported in OO objects"
    If, I remove OCCURS statement I get an error stating that "Tables with headers are no longer supported in OO context" for the following data statement.
    Appreciate, if you could provide possible solution to overcome the problem.
    Regards
    Kumar
    BAPI code is as follows.
    DATA: LV_TABIX LIKE SY-TABIX,
    LT_WMDVSX LIKE BAPIWMDVS OCCURS 0 WITH HEADER LINE,
    LT_WMDVEX LIKE BAPIWMDVE OCCURS 0 WITH HEADER LINE.
    LV_TABIX = SY-TABIX.
    CLEAR: LT_WMDVSX, LT_WMDVEX.
    REFRESH: LT_WMDVSX, LT_WMDVEX.
    Fill communication table
    LT_WMDVSX-REQ_DATE = ET_PROCUREMENT_ITEM-DELIV_DATE.
    LT_WMDVSX-REQ_QTY = ET_PROCUREMENT_ITEM-QUANTITY.
    APPEND LT_WMDVSX.
    Availability check with check rule '03'
    CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
    EXPORTING
    PLANT = ET_PROCUREMENT_ITEM-PLANT
    MATERIAL = ET_PROCUREMENT_ITEM-MATERIAL
    UNIT = ET_PROCUREMENT_ITEM-UNIT
    CHECK_RULE = '03'
    TABLES
    WMDVSX = LT_WMDVSX
    WMDVEX = LT_WMDVEX
    EXCEPTIONS
    OTHERS = 1.
    IF SY-SUBRC EQ 0.
    READ TABLE LT_WMDVEX WITH KEY
    COM_DATE = ET_PROCUREMENT_ITEM-DELIV_DATE.
    IF SY-SUBRC EQ 0.
    ET_PROCUREMENT_ITEM-AVAIL_QTY = LT_WMDVEX-COM_QTY.
    ENDIF.
    ENDIF.

    Hi,
    Occurs is no more supported by SAP ( is an obsolete statement )
    <b>Instead of following code</b>
    DATA: LV_TABIX LIKE SY-TABIX,
    LT_WMDVSX LIKE BAPIWMDVS OCCURS 0 WITH HEADER LINE,
    LT_WMDVEX LIKE BAPIWMDVE OCCURS 0 WITH HEADER LINE.
    you can use
    data: LT_WMDVSX type standard table of BAPIWMDVS,
            LT_WMDVEX type standrad table of  BAPIWMDVE,
            LS_WMDVSX like line of LT_WMDVSX ,      "( work area )
            LS_WMDVEX like line of LT_WMDVEX.       "(work area)
    use workarea to get the data and then append the records from workarea to Internal tables
    Reward points if usefull
    Regards,
    Mohan

  • WorfFlow Agent Assignment at Task Level...

    Hi,
    I have problem in Workflow agent assignment...
    In agent assignment at Task (MM Invoices Parked/Posted) level, I have assigned a position(Account Payable)to AC Role...
    Under this position, there are 8 users....
    In the Workflow process,At this task level the work item is going to only one person inbox not all these 8 users...
    Can you please advise me, where I was wrong...
    Warm Regards,
    Thirupathi....

    Hi Thirupathi,
    There are a couple of things you can try:
    - Agent assignment gets buffered in HR, normally refreshed at midnight. Use txn SWU_OBUF to refresh them manually.
    - Are all agents also possible agents of the task or is the task defined as a general task?
    - (just adding the obvious) make sure your task is in status READY, else it would have been reserved by someone.
    Cheers
    Mike

Maybe you are looking for

  • Follow sprite when the mouse is down, but randomly move when mouse is up?

    I have a sprite that has a Random Movement behavior. While the mouse is down, I want it to stop this behavior and initialize a Follow Sprite behavior instead. When the mouse is lifted, I want to stop the Follow Sprite behavior and reset/restart the R

  • Assigning learners to Learner Group and creation of Learner Group.

    Hi All, Are there any standard ways to create Learner Groups from R12.1.3. I have tried looking for Oracle standard APIs but did not find them. Is there any other way we can create Learner group from back end. I know to create them from Application b

  • Agent determination getting failed for one particular scenerio

    Hi, I am working on production workflow issue. Production system is cluster of hospitals for HR system. Staff applies leave from hospital A by keeping approver from hospital B. Workflow is triggering. The problem is work item is not getting placed in

  • Make a circle with outline and image

    Hi All I am trying to make an image in the shape of a circle, with a border, kind of like the image attached, but i need the black boarder to be even, and ideally need it to be a template so the circle and boarder is the same size and i just add diff

  • Looking for best practices for web delivery of Captivate tutorials

    I have a set of ~50 Adobe Captivate projects that are a mix of UI tour, business process overviews, and how-tos for configuring those processes. These "tutorials" as we call them, vary in length, ~1-3 minutes for the UI tours and overviews, and 4-10