Data not passed to workflow

Hi,
I created a new element to my WF container: 'Object_id'. I binded it to my decision task also. I am calling this workflow from a method:
data:
        t_cont  TYPE TABLE OF swcont,
        lv_objid TYPE crmt_object_id_db.
    lv_objid = '0000000001'.
    swc_set_element t_cont 'Object_id' lv_objid.
    CALL FUNCTION 'EWW_WORKFLOW_START'
      EXPORTING
        x_task          = w_task
      TABLES
        x_container     = t_cont
      EXCEPTIONS
        invalid_task    = 1
        no_active_plvar = 2
        start_failed    = 3
        general_error   = 4
        OTHERS          = 5.
    COMMIT WORK.
This workflow gets triggered but the problem is that it is not showing object id in task. I have used following description in task:
Warranty item &OBJECT_ID& needs your approval for discount.
Still no object_id is captured here. Can you help on this?
Regards,
Shikha

Make sure the workflow container element name and the name that you specified in the SWC_SET_ELEMENT statement are same and try to mention the name in the upper case.
it should be with the same name
SWC_SET_ELEMENT t_cont  'OBJECT_ID' lv_objid.
if the element that you want to pass is a table then you have to use SWC_SET_TABLE

Similar Messages

  • Bdc Screen data not passing to XK01 transaction screen for the second PO

    Hi Friends,
                    I have an requirement to extend an existing vendor to multiple company code and for multiple purchase organisation.I have created one report that will list the company code and the purchase organisation to be extended for the vendor. I am calling the standard program as below.
              LOOP AT li_porg.
              If user has ALSO selected p. organizations to extend...
                IF NOT li_company[] IS INITIAL.
                  LOOP AT li_company.
                    SUBMIT zricef666 WITH ld_par = ld_param
                                     WITH ls_vend = ls_vendor_ampl
                                     WITH ld_bukrs = li_company-bukrs
                                     WITH ld_ekorg = li_porg-ekorg
                             AND RETURN.
                  ENDLOOP.
              ENDLOOP.
    Within the program zricef666 , i am calling the below program to extend vendor.
    SUBMIT RFBIKR00 WITH ds_name = FICH
                   WITH xlog = ld_mark
                    AND RETURN.
    Now the problem i am facing is that the first vendor got extended sucessfully for the first PO.But for the second PO , the screen fields are blank and it stuckes in that screen. But in the session i am able to clearly see the data are there but these data are not passing to the screen of XK01.
        Need help to solve this problem from you all.Thanks in advance.
    With Regards,
    Ajit Prasad.

    Hello Ajit, try with the following code and reward if useful. the following code uses the transaction XK01.
    REPORT zbdcxk01 .
    DATA: BEGIN OF itab OCCURS 0,
            lifnr LIKE rf02k-lifnr,
            bukrs LIKE rf02k-bukrs,
            ktokk LIKE rf02k-ktokk,
            name1 LIKE lfa1-name1,
            sortl LIKE lfa1-sortl,
            land1 LIKE lfa1-land1,
            brsch LIKE lfa1-brsch,
            akont LIKE lfb1-akont,
            zterm LIKE lfb1-zterm,
            reprf LIKE lfb1-reprf,
            zwels LIKE lfb1-zwels,
          END OF itab.
    DATA: rc TYPE i,
          flag TYPE i VALUE 1,
          it_files TYPE filetable,
          bdc_data TYPE STANDARD TABLE OF bdcdata WITH HEADER LINE.
    DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
    PARAMETERS: p_file(1024) TYPE c OBLIGATORY.
    PARAMETERS:dismode DEFAULT 'A',
               updmode DEFAULT 'S'.
    SELECTION-SCREEN : END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
      CHANGING
         file_table              = it_files
         rc                      = rc.
    *Read the Filename into P_FILE
      READ TABLE it_files INDEX 1 INTO p_file.
    START-OF-SELECTION.
      PERFORM getdata.
      PERFORM create_session.
      LOOP AT itab.
        PERFORM fill_bdc_table.
      ENDLOOP.
      PERFORM close_session.
    END-OF-SELECTION.
      PERFORM submit.
    *&      Form  getdata
    *       text
    FORM getdata.
      DATA: file TYPE string.
      file = p_file.
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                filename                = file
                has_field_separator     = 'X'
           TABLES
                data_tab                = itab
           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 sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    ENDFORM.                    " getdata
    *&      Form  CREATE_SESSION
    *       text
    FORM create_session.
      CALL FUNCTION 'BDC_OPEN_GROUP'
       EXPORTING
         client                    = sy-mandt
    *   DEST                      = FILLER8
         group                     = 'MYGROUP'
    *   HOLDDATE                  = FILLER8
         keep                      = 'X'
         user                      = sy-uname
    *   RECORD                    = FILLER1
    * IMPORTING
    *   QID                       =
       EXCEPTIONS
         client_invalid            = 1
         destination_invalid       = 2
         group_invalid             = 3
         group_is_locked           = 4
         holddate_invalid          = 5
         internal_error            = 6
         queue_error               = 7
         running                   = 8
         system_lock_error         = 9
         user_invalid              = 10
         OTHERS                    = 11
      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.                    " CREATE_SESSION
    *&      Form  CLOSE_SESSION
    FORM close_session.
      CALL FUNCTION 'BDC_CLOSE_GROUP'
           EXCEPTIONS
                not_open    = 1
                queue_error = 2
                OTHERS      = 3.
      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.                    " CLOSE_SESSION
    *&      Form  FILL_BDC_TABLE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_bdc_table.
      REFRESH bdc_data.
      PERFORM operation.
      CALL FUNCTION 'BDC_INSERT'
       EXPORTING
         tcode                  = 'XK01'
    *   POST_LOCAL             = NOVBLOCAL
    *   PRINTING               = NOPRINT
        TABLES
          dynprotab              = bdc_data
    * EXCEPTIONS
    *   INTERNAL_ERROR         = 1
    *   NOT_OPEN               = 2
    *   QUEUE_ERROR            = 3
    *   TCODE_INVALID          = 4
    *   PRINTING_INVALID       = 5
    *   POSTING_INVALID        = 6
    *   OTHERS                 = 7
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      PERFORM bdc_transaction USING 'XK01'.
    ENDFORM.                    " FILL_BDC_TABLE
    *&      Form  BDC_DYNPRO
    *       texT
    *  -->  p1        text
    *  <--  p2        text
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdc_data.
      bdc_data-program = program.
      bdc_data-dynpro = dynpro.
      bdc_data-dynbegin = 'X'.
      APPEND bdc_data.
    ENDFORM.                    " BDC_DYNPRO
    *&      Form  BDC_FIELD
    *       text
    FORM bdc_field USING fnam fval.
      CLEAR bdc_data.
      bdc_data-fnam = fnam.
      bdc_data-fval = fval.
      APPEND bdc_data.
    ENDFORM.                    " BDC_FIELD
    *&      Form  BDC_TRANSACTION
    FORM bdc_transaction USING tcode.
      CALL TRANSACTION tcode USING bdc_data
                             MODE   dismode
                             UPDATE updmode
                             MESSAGES INTO messtab.
    ENDFORM.                    " BDC_TRANSACTION
    *&      Form  SUBMIT
    *       text
    FORM submit.
      SUBMIT rsbdcsub EXPORTING LIST TO MEMORY AND RETURN
    *                  user sy-uname
                        WITH mappe = 'MYGROUP'
                        WITH von   = sy-datum
                        WITH bis   = sy-datum
                        WITH z_verarb = 'X'.
    ENDFORM.                    " SUBMIT
    *&      Form  OPERATION
    *       text
    FORM operation.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RF02K-KTOKK'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'RF02K-LIFNR'
                                    itab-lifnr.
      PERFORM bdc_field       USING 'RF02K-BUKRS'
                                    itab-bukrs.
      PERFORM bdc_field       USING 'RF02K-KTOKK'
                                    itab-ktokk.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0110'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFA1-SORTL'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'LFA1-NAME1'
                                    itab-name1.
      PERFORM bdc_field       USING 'LFA1-SORTL'
                                    itab-sortl.
      PERFORM bdc_field       USING 'LFA1-LAND1'
                                    itab-land1.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0120'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFA1-BRSCH'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'LFA1-BRSCH'
                                    itab-brsch.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0130'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFBK-BANKS(01)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=ENTR'.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0210'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFB1-AKONT'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
      PERFORM bdc_field       USING 'LFB1-AKONT'
                                    itab-akont.
      PERFORM bdc_dynpro      USING 'SAPMF02K' '0215'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'LFB1-REPRF'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=UPDA'.
      PERFORM bdc_field       USING 'LFB1-ZTERM'
                                    itab-zterm.
      PERFORM bdc_field       USING 'LFB1-REPRF'
                                    itab-reprf.
      PERFORM bdc_field       USING 'LFB1-ZWELS'
                                    itab-zwels.
      PERFORM bdc_transaction USING 'XK01'.
    ENDFORM.                    " OPERATION

  • Data not passing between two Views in FPM-GAF

    Hello All
    I have first screen (view) configured with Initial screen and second view with main step using FPM GAF. But data is not passing from first screen to second screen. All  views/Windows contains in the one component.
    Example: In First Screen contains Employee Data in table , selecting the row clicks on button it is navigating to other screen (Mainstep) BUT selected data is not passing.
    BR
    -CW

    Hello Williams,
    CarlinWilliams wrote:
    > From FPM Intial Screen of data is not passing to the second screen. Where as in other Steps data is passing.
    I'm bit surprised to hear that this is working in other screens. As per the FPM concepts (my understanding), for the parent component that is used in child component, it will create a new instance and it wont re-use the instance of the Parent Component that is already embedded in the Initial Screen.
    In your case, you have embeded the parent component in Initial Screen. So FPM framework will create a new instance at runtime. while navigating to the Main Step, since child component is using parent component, the FPM wont re-use the instance of parent component. Rather it will create a new instancs of parent component. Since new instance is created, the data entered in the previous step/screen wont be available. this behavior is same for all the steps.
    anyway comming to your question and solution for the same.
    1. In the child component, create another window (say PARENT_WINDOW) and embed the view that was exposed by the parent component (basically interface view of the parent component)
    2. in the GAF component configuration, for the initial screen, embed the child component and view as PARENT_WINDOW
    3. for the main step, embed the child component and view as acutal view of the child component.
    Here same component is used in both the places. Now the FPM will try to reuse the instance of the child component. As a result, the data entered in the Initial screen will be available in the Main Step as well.
    Other approach would be to use the singleton class and share the data between these two components.
    Hope this solves your problem.
    BR, Saravanan

  • Added new field to cube but data not passed from DSO

    Hope someone can help.
    (BI 7.0) We added new fields into a cube. The fields already existed in the DSO. When we ran the process chain in development for the first time after making this change, we notice that the 'historical' data for these fields is populated in the cube. When we do this in our quality system only new data passed to the cube is updated. In development in the sub-chain DTP request we see all previous requests listed under selections. In quality it is only the latest request. The only difference is that the DeltaInit flag in the DTP request in development is ticked (extraction mode) - but not in quality. Does anyone know whyb this is?

    hi peter,
    Adding fields to cube doesn't affect delta status...The delta DTP should be able to handle delta requests automatically.
    I guess in you quality system, the cube already got all requests updated from ODS before you importing the change request. And in develop system none of the requests in ODS were updated before the change.
    Regards,
    Frank

  • New field data not passed from BupaSearch to BupaCreate

    Hi,
    We have 2 new fields on BupaSearch. When we hit the create button to create a new BP, any data entered in the 2 new fields is not then passed through to the BupaCreate view. I've debugged in method 'CREATE_ACCOUNT' in BupaSearch, where it sets up parameters but the fields are not available to use at this point for some reason. So, for example, the following will fail:
    lv_nickname = lv_query->get_property_as_string( 'NICKNAME' ).
    Can anyone point me in the right direction ?
    thanks,
    Malcolm.

    Hi,
    I need your help. Im trying to create a new field "identification type" in a view. This field is existing as a attribute of "BuilIdNumber" object. Im able to add this as context node. But when i include this field in view, and launch webclient, this field is disabled,  Can you help me on this. I have used the wizard for creating a context node.
    Can you plz tell all the steps in detail that are to be carried to add new field to a view.
    Thanks in advance,
    chandan

  • Sharepoint 2013 designer workflow auto approve task after due date is passed

    sharepoint 2013 designer workflow auto approve task after due date is passed.
    Could we approve the task automatically once due date is apssed?
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi Amit,
    If your task is created by a workflow (first) and stored in a separate task list, you can create another workflow on this particular task list, then each workflow instance would check if current task is expired (not approved/rejected), then
    determine if update current task's "Task Outcome" as approved (and update task status as complete), and then create a retention policy on this paricular task list to trigger the workflow on due date .
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]
    Daniel Yang
    TechNet Community Support

  • I want to get the data of a table inside the Form but it is not passed

    I want to get the data of a table inside the Form but it is not passed to the form by tables parameters.
    How can I do this.
    Regards

    If there is a problem with defining it globaly, you can define a field symbol globably and point to it. For example.  It would probably be better to define your table globably.
    report zrich_0003 .
    field-symbols: <imarc> type marc_upl_tt.
    start-of-selection.
      perform get_data.
    *       FORM get_data                                                 *
    form get_data.
      data: imarc type table of marc with header line.
      select * from marc into table imarc up to 10 rows.
      assign imarc[] to <imarc>.
      perform write_data.
    endform.
    *       FORM write_data                                               *
    form write_data.
      data: xmarc type marc.
      loop at <imarc> into xmarc.
        write: / xmarc-matnr, xmarc-werks.
      endloop.
    endform.
    Regards,
    Rich Heilman

  • Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type a

    Dear Team,
    Japanese characters alone are not passing correctly (passing like ??? or some unreadable characters) to Adobe application when we create input variable as XML data type. The same solution works fine if we change input variable data type to document type. Could you please do needful. Thank you

    Hello,
    most recent patches for IGS and kernel installed. Now it works.

  • Validation "is a valid date" does not pass but Apex proceeding anyway

    Hi,
    I have a simple date-item which I validate first against "not null", then for "is a valid date", then that the date is not in the future.
    In debug mode the first validation passes, the second ( is a valid date ) does not pass, but the validation process proceeds anyway...!? Then the third validation "date not in the future" produces ad DB-Error because it is not a valid date.
    Why does the validation proceed even if the validation does not pass...?
    Version 2.2.0
    Juergen

    Juergen,
    "In debug mode the first validation passes, the second ( is a valid date ) does not pass, but the validation process proceeds anyway...!?"
    Do you mean that the third validation is firing even though the second is failing? This behaviour is correct. All validations fire (regardless of any having already failed) unless they have specific conditions set on them to make them act differently.
    If you don't want the third validation to fire if the second has failed then you will need to put a condition on the 3rd validation to prevent this. Alternatively you could bundle all you validations into one of type "PL/SQL returning Error Text" then have some IF...THEN...ELSE logic in your PL/SQL to return the relevant validatoin text depending on what the problem is (i.e. Date is null, date is invalid or date is in the future).
    Andy

  • When I run this VI "Waveform Time to Date Time String" in LabView 7.0 it will not pass decimals of seconds.

    When I run this VI "Waveform Time to Date Time String" in LabView 7.0 it will not pass decimals of seconds. From decimals of inputline. If i disconnect the input to the subVI "Get Date/Time string vi" it will work propperly, it also doses if I reconnect it. I use LabViev 7.0.
    So the problem i solved, but i dosent understund why it works in this way. Does it indicate other problems which will make my researchprogram unrelaible ?
    Attachments:
    Waveform_Time_to_Date_Time_String.vi ‏18 KB

    Hello.
    I checked your vi and it fails as you state.
    It runs fine if: 1 Convert number to timestamp OR
    2 Wire a constant to want seconds?
    In labview 7.1, no problems.
    I think is a job for NI engeniers.
    Hope it helps
    Alipio
    "Qod natura non dat, Salmantica non praestat"

  • BPC - Submitted data did not pass validation

    Hi experts,
    I'm working with BPC 7 Microsoft.
    I've just copied an ApplicationSet and the new one doesn't work properly in reference to sending data.
    The issue is:
    I send data correctly. The system shows the result as successfully, n data submited, 0 data rejected. But, suddenly, the template doesn't show data. It seems as if the data was disappearing.
    If before sendind data, I click on "Validate submission before sending", the message is: "Submitted data did not pass validation; you may need to resubmit it"
    Any ideas about it? Do you know what I'm doing wrong? Any possible solution will be welcomed.
    Thanks and Regards

    Hi,
       It looks like your data is not passing the validation rules defined into Validation Account. Please verify the rules defined there. Please try to also to full process the Account dimension.
       If the data did not pass validation, select Yes to run the validation report. This report is creating by administrator and should show you why the data is not passing the validation.
    Best regards,
    Mihaela

  • Change document  - Workflow Event Container value not passed

    Hi Iam working on a customer create notification scenario where in we are sending a notification to SAP Inbox whenever a customer is created.We are checking industry key(KNA1-BRSCH) value through a check function module.When the customer is created in the system the system triggers the corresponding even it gets in to check module and an exception is raised saying Industry key does not have any value.
    Problem is Industry key value is not passed on to the container.
    Where might be the problem...?
    Is anything missing in SWEC(Events for change document)
    -but the event is trigerred...container value for industry key not passed...
    Please advice...
    Thanks in advance!

    Refer to link below.
    Sandy

  • Bdc not working with workflow

    Hallo,
    I have an issue with a bdc FM i created not working with workflow.
    If I test the FM, it works ok.
    If i Test the method calling the FM it works ok.
    if i test the task calling the method it works ok.
    If I run the workflow it doesn't work, and i get the following messages:
    S     DC     1     Unable to initialise ABAP Control Framework ...             
    S     DC     1     Unable to initialise ABAP Control Framework ...          
    S     DC     6     Control Framework: Fatal error - GUI cannot be reached     
    A     SY     2     Exception condition "CNTL_ERROR" raised.
    What is the meaning of this??     
    Bdc is calling Me54n to set to click on reject button during Purchase Requisition Release,
    putting the PR processing state in status '08'
    I checked all the binding which are fine. No container parameter are passed a part from the business object.
    here is the FM coding:
    FUNCTION ZME_N_WF_REJ_PR.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(CTU) LIKE  APQI-PUTACTIVE DEFAULT 'X'
    *"     VALUE(MODE) LIKE  APQI-PUTACTIVE DEFAULT 'N'
    *"     VALUE(UPDATE) LIKE  APQI-PUTACTIVE DEFAULT 'L'
    *"     VALUE(GROUP) LIKE  APQI-GROUPID OPTIONAL
    *"     VALUE(USER) LIKE  APQI-USERID OPTIONAL
    *"     VALUE(KEEP) LIKE  APQI-QERASE OPTIONAL
    *"     VALUE(HOLDDATE) LIKE  APQI-STARTDATE OPTIONAL
    *"     VALUE(NODATA) LIKE  APQI-PUTACTIVE DEFAULT '/'
    *"     VALUE(BANFN_003) LIKE  BDCDATA-FVAL
    *"  EXPORTING
    *"     VALUE(SUBRC) LIKE  SYST-SUBRC
    *"  TABLES
    *"      MESSTAB STRUCTURE  BDCMSGCOLL OPTIONAL
    subrc = 0.
    perform bdc_nodata      using NODATA.
    perform open_group      using GROUP USER KEEP HOLDDATE CTU.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MECHOB'.
    *perform bdc_field       using 'DYN_6000-LIST'
                                 LIST_001.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEREQ3328-AFNAM'.
    *perform bdc_field       using 'MEREQ3328-EKGRP'
                                 EKGRP_002.
    perform bdc_dynpro      using 'SAPLMEGUI' '0002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEOK'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO_SELECT-BANFN'.
    perform bdc_field       using 'MEPO_SELECT-BANFN'
                                  BANFN_003.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MEREJECT'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DYN_6000-LIST'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MESAVE'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DYN_6000-LIST'.
    perform bdc_transaction tables messtab
    using                         'ME54N'
                                  CTU
                                  MODE
                                  UPDATE.
    if sy-subrc <> 0.
      subrc = sy-subrc.
      exit.
    endif.
    perform close_group using     CTU.
    ENDFUNCTION.
    INCLUDE BDCRECXY .
    I tries the same approach on ML81N to block a service entry sheet.(pressing the lock icon),
    I get exactly the same issue.
    Anybody knows how to resolve?
    Or how to do the same without using a bdc call?
    regards,
    marco

    Hi
    this is the Method callind the FM
    object is BUS2105 w delegation ZBUS2105.
    BEGIN_METHOD ZRELEASEREJECTED CHANGING CONTAINER.
    Data: CTU TYPE APQI-PUTACTIVE,      
          MODE TYPE APQI-PUTACTIVE,     
          UPDATE TYPE APQI-PUTACTIVE,
         NODATA TYPE APQI-PUTACTIVE.  
    CTU = 'X'.               
    MODE = 'N'.                
    UPDATE = 'L'.              
    NODATA = '/'.              
    iobjectkey = object-key.
       CALL FUNCTION 'ZME_N_WF_REJ_PR'             
         EXPORTING                                 
           BANFN_003 = iobjectkey                  
           NODATA = NODATA                                            
           UPDATE = UPDATE                         
           MODE = MODE                             
           CTU = CTU                               
         IMPORTING                                 
           SUBRC = SUBRC                           
         TABLES                                    
           MESSTAB = MESSAGE                       
         EXCEPTIONS                                
           OTHERS = 01.                            
       CASE SY-SUBRC.                              
         WHEN 0.            " OK                   
         WHEN OTHERS.       " to be implemented    
       ENDCASE.                                    
    SWC_SET_ELEMENT CONTAINER 'Subrc' SUBRC.                   
    SWC_SET_TABLE CONTAINER 'MESSAGE' MESSAGE.                                                                               
    END_METHOD.

  • Data not loading from PSA to infocube

    Hi,
    I'm facing a problem while extracting the data from PSA to infocube (On APO SIDE). we are using 3 infocubes and we extracting data in such a way that each infocube has only one unit of measure, so with the help of abaper, we have written a start routine in the transformation that for eg: the products with unit of measure KM should come only in the cube.But no data is coming into the cube and it is showing the following errors
    From Abap Side:
    It turns up with an error message. The error is generated at the start routine method. In the method abap code is added. the code is "DELETE SOURCE_PACKAGE where VRKME NE 'KM'." Following is the error displayed :
    1.) Call of the method START_ROUTINE of the class LCL_TRANSFORM failed; wrong type for parameter SOURCE_PACKAGE
    2.) Exception CX_RS_STEP_FAILED logged
    please help me out in this.
    Thank you
    Regards,
    Raj

    Could you please explain it in more elaborate.
    V r not passing anything to DATA_PACKAGE neither using it. In the method call v r passing <_yt_SC_1> to parameter SOURCE_PACKAGE. And inside the method v have written the delete code as "DELETE SOURCE_PACKAGE where VRKME NE 'KM'. "
    Do we need to change the coding to "DELETE DATA_PACKAGE where VRKME NE 'KM'. "
    Regards,
    Raj

  • Scheduling Agreement -Schedule line should not pass the requirement to MRP

    Hi Friends!
    As we all know the scheduling agreements is outline agreement with future schedule lines, with this system will  pass the requirements to MRP for the schedule line which is even after 5 years, so my requirement is  if the schedule line date is above 15 days from the current date then requirement should not pass to MRP. 
    solution which we gave is, SA initially will determine the schedule line category as  CN (which will not transfer the requirement) and  a batch job program will run daily and it will check for each schedule line if any of the schedule is with in the 15 days from the current date then it will change the schedule line category from CN to CP. 
    Now the problem is , by using Batch Job which program I have to call to change the schedule line category?????
    1. we tried BAPI_SALESORDER_CHANGE but when we are changing the CN to CP it is not performing ATP where as if we do manually it is performing.
    2. we tried BDC but here also we facing some strange problem i.e. while recording the ATP screen is not populating where it is coming while doing manual.
    Can someone let me know which one program we should call in Batch job to do this change.
    Regards
    Nath

    Hi nath,
    i also failed in changing shedule line category in userexit and in BAPI.
    in one case, i succeded in doing it with a bdc after MV45AFZZ / userexit_save just bevore the datas are reset but after the commit-work is processed.
    the other possibility is, to change the accepted amount in userexit RV03VFZZ / USEREXIT_AVAILABILITY_OUT.
    3. possibility is, to block the order with a delivery - block , same as the credit-control-block. This block can be set in MV45AFZZ or perhaps in BAPI too.
    hans

Maybe you are looking for

  • Unplanned depreciation ABAA

    Hello Experts, I use ABAA to devaluate an asset(unplanned dep) with value date at 01.01.2010, but the depreciation run still not run for 01.2010. In AW01N, the column "Ord Dep" for all periods in 2010  still show the origianl depreciation value, but

  • Turning off my ipod

    I have a first generation ipod. Can someone tell me how you turn it off so I don't waste my battery when I'm not listening to it? BTW, is it me or is this not a very good battery? Thanks, MJ

  • How do you tell what week your computer was manufactured?

    How can I tell what week my computer was manufactured? My serial number is [..snipped...]. Week 19 translates to what month? Thank you

  • Simple Java DB example

    I am using Java 1.6 and Eclipse Galelio on Vista, Do I need to configure anything is there any story of setting path? How to check my Java DB is working or not or everything is fine or not? I found many totorial with simple Java DB example but they s

  • Place dock on bottom of 2nd screen?

    I have 2 monitors, the only way I can find to get the dock off of the main screen (menu bar screen) is to change it's position to a side. I would like the dock on the 2nd screen (without menu bar) but still on the bottom. I was toying with the dock's