Reg. commit work in a follow-up action

friends
   i am using the following approach to solve a requirement which is posted in this thread..How to send a mail after a usage decision is made in QA11?
got a nice reply too
  i have defined a follow-up action and assigned a customized mail-sending fm to it..my doubts are, i am on 4.7..am able to send the mail to an internal id, but the problem is without using commit work and submit rsconn01 commands, am failing in doing the same...i have read in a thread that commit work or submit (if the called program uses commit work) will cause data inconsistencies and will trigger locks if it's used in any user-exit or badi...but in my case, when will a follow-up action actually take place? will it happen after all the database commits? if so, then i believe that even i use commit work and submit commands in my z mail sending fm, it wouldn't cause any problems...am just sort of afraid whether this approach is the correct one? or triggering the mail code from the last user exit or badi itself will solve the purpose? i believe not..please guide me on this friends...helpful replies will be appreciated and awarded..thanks in advance
Regards,
Sathish. R

less views and no answers:-(

Similar Messages

  • Reg. commit work

    friends,
    i have defined a follow-up action for txn qa11/12 and assigned a customized mail-sending fm to it..am on 4.7 and to send the mail to an internal lotus notes id using so_new_document_send_api1, but the problem is without using commit work and submit rsconn01 commands, am failing in doing the same...just want to make sure that my follow-up action will take place after all the database commits and will not cause any problems? ..please guide me on this friends...thanks in advance
    regards,
    Sathish. R

    hi
      thanks for your response...but QFOA_MAIL_SENDING_STANDARD is the fm used by a standard follow-up action that sends a mail to user's SAP office...that fm uses so_object_send to send the mail, which finally calls a commit work...just in a general sense, i hope follow up action triggers after all database commits..correct me if am wrong...i've never used perform on commit...any suggestions will be of great help
    regards
    Sathish. R

  • Commit work and roll back with simple language and simple example

    hi guru
    commit work and roll back with simple language and simple example

    Hi,
    The statement COMMIT WORK completes the current SAP LUW and opens a new one, storing all change requests for the current SAP LUW in the process. In this case, COMMIT WORK performs the following actions:
    It executes all subroutines registered using PERFORM ON COMMIT.
    The sequence is based on the order of registration or according to the priority specified using the LEVEL addition. Execution of the following statements is not permitted in a subroutine of this type:
    PERFORM ... ON COMMIT|ROLLBACK
    COMMIT WORK
    ROLLBACK WORK
    The statement CALL FUNCTION ... IN UPDATE TASK can be executed.
    ROLL BACK:
    The statement ROLLBACK WORK closes the current SAP-LUW and opens a new one. In doing so, all change requests of the current SAP-LUW are canceled. To do this, ROLLBACK WORK carries out the following actions:
    1) Executes all subprograms registered with PERFORM ON ROLLBACK.
    2) Deletes all subprograms registered with PERFORM ON COMMIT.
    3) Raises an internal exception in the Object Services that makes sure that the attributes of persistent objects are initialised.
    4) Deletes all update function modules registered with CALL FUNCTION ...IN UPDATE TASK from the VBLOG database table and deletes all transactional remote Function Calls registered with CALL FUNCTION ... IN BACKGROUND TASK from database tables ARFCSSTATE and ARFCSDATA.
    5) Removal of all SAP locks set in the current program in which the formal parameter _SCOPE of the lock function module was set to the value 2.
    6) Triggers a database rollback, which also ends the current database-LUW.

  • Follow Up Actions - Reporting Agent

    Hi BW Gurus,
    I would like to know what are following up action is available in Reporting Agent
    Thank You

    Hi Luis,
    There are 4 steps.
    1) Send Mail- alerts user by e-mail; for example you can send e-mail saying sales qty target were missed
    2) Alert Monitor entry - view results in the alert monitor; you can also give an URL for the alert monitor
    3) Export - Send Data to a work flow for follow up action
    4) RRI Interface - if an exception happens you can jump to another query for a more detailed display using Go To option
    TQ
    Kumar

  • Reg. Error in Commit work in FM "SO_NEW_DOCUMENT_ATT_SEND_API1"

    Dear Experts,
    My requirement is that i need to send the PDF attachment via Outlook Express as Mail. I am using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1" for sending to Outlook Express. Here i need to check "Commit work" flag. Else it will not be sent to the mail. When i do this, i am getting the short dump saying "MESSAGE_TYPE_X" - Pre_commit check.
    Is the above issue related to any configuration settings done by Basis. I checked the forum but i could not get suitable post.
    Kindly help me in this regard.
    Regards,
    Ramesh Manoharan

    Hi Ramesh,
    Check subrc and RETRN_CODE value for the table RECEIVERS. If subrc is inintial and Return_code is fine.
    Then check with your basis team. They might need to do some config change.
    I have used used a Z-FM to do this job. Find the code below.
    FUNCTION z_send_pdf_2_email .
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(EMAILID) TYPE  INTAD
    *"     VALUE(SUBJECT) TYPE  CHAR200
    *"     VALUE(ATTACH_NAME) TYPE  CHAR200
    *"     VALUE(PONUM) TYPE  EBELN
    *"     VALUE(PODATE) TYPE  BEDAT
    *"  EXPORTING
    *"     REFERENCE(RETURN) TYPE  SUBRC
    *"  TABLES
    *"      I_OTF STRUCTURE  ITCOO
      TYPES : t_record  TYPE solisti1,
              t_objpack TYPE sopcklsti1,
              t_objtxt  TYPE solisti1,
              t_reclist TYPE somlreci1.
      DATA : l_lines_bin TYPE i,
             l_lines_txt TYPE i,
             l_len_in TYPE sood-objlen,
             l_date TYPE char10,
             i_record TYPE TABLE OF t_record,
             i_objpack TYPE TABLE OF t_objpack,
             i_objtxt TYPE TABLE OF t_objtxt,
             i_objbin TYPE TABLE OF t_objtxt,
             i_reclist TYPE TABLE OF t_reclist,
             i_tline TYPE TABLE OF tline,
             w_record TYPE t_record,
             w_objpack TYPE t_objpack,
             w_objtxt TYPE t_objtxt,
             w_objbin TYPE t_objtxt,
             w_reclist TYPE t_reclist,
             w_tline TYPE tline,
             w_doc_chng TYPE sodocchgi1,
             w_buffer TYPE string,
             w_objhead TYPE soli_tab.
      CONSTANTS: c_smart(5) TYPE c VALUE 'SMART',
               c_u TYPE c VALUE 'U',
               c_raw(3) TYPE c VALUE 'RAW',
               c_f TYPE c VALUE 'F',
               c_pdf(3) TYPE c VALUE'PDF',
               c_x TYPE c VALUE 'X'.
    * Convert OTF data to PDF
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = c_pdf
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = l_len_in
        TABLES
          otf                   = i_otf
          lines                 = i_tline
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      LOOP AT i_tline INTO w_tline.
        TRANSLATE w_tline USING '~'.
        CONCATENATE w_buffer w_tline INTO w_buffer.
      ENDLOOP.
      TRANSLATE w_buffer USING '~'.
      DO.
        w_record = w_buffer.
        APPEND w_record TO i_record.
        SHIFT w_buffer LEFT BY 255 PLACES.
        IF w_buffer IS INITIAL.
          EXIT.
        ENDIF.
      ENDDO.
    * Attachment
      REFRESH: i_reclist,
      i_objtxt,
      i_objbin,
      i_objpack.
      CLEAR w_objhead.
      i_objbin[] = i_record[].
      CONCATENATE podate+6(2) '.' podate+4(2) '.' podate(4) INTO l_date.
    * Create Message Body Title and Description
      w_objtxt = text-003.
      APPEND w_objtxt TO i_objtxt.
      CLEAR w_objtxt.
      CONCATENATE l_date text-004 ponum text-005 INTO w_objtxt SEPARATED BY space.
      APPEND w_objtxt TO i_objtxt.
      CLEAR: w_objtxt, l_date.
      w_objtxt = text-006.
      APPEND w_objtxt TO i_objtxt.
      CLEAR w_objtxt.
      w_objtxt = space.
      APPEND w_objtxt TO i_objtxt.
      CLEAR w_objtxt.
      w_objtxt = text-007.
      APPEND w_objtxt TO i_objtxt.
      CLEAR w_objtxt.
      w_objtxt = space.
      APPEND w_objtxt TO i_objtxt.
      CLEAR w_objtxt.
      w_objtxt = text-008.
      APPEND w_objtxt TO i_objtxt.
      CLEAR w_objtxt.
      DESCRIBE TABLE i_objtxt LINES l_lines_txt.
      READ TABLE i_objtxt INTO w_objtxt INDEX l_lines_txt.
      w_doc_chng-obj_name = subject.
      w_doc_chng-expiry_dat = sy-datum + 10.
      w_doc_chng-obj_descr = subject.
      w_doc_chng-sensitivty = c_f.
      w_doc_chng-doc_size = l_lines_txt * 255.
    *Main Text
      CLEAR w_objpack-transf_bin.
      w_objpack-head_start = 1.
      w_objpack-head_num = 0.
      w_objpack-body_start = 1.
      w_objpack-body_num = l_lines_txt.
      w_objpack-doc_type = c_raw.
      APPEND w_objpack TO i_objpack.
      CLEAR w_objpack.
    * Attachment (pdf-Attachment)
      w_objpack-transf_bin = c_x.
      w_objpack-head_start = 1.
      w_objpack-head_num = 0.
      w_objpack-body_start = 1.
      DESCRIBE TABLE i_objbin LINES l_lines_bin.
      READ TABLE i_objbin INTO w_objbin INDEX l_lines_bin.
      w_objpack-doc_size = l_lines_bin * 255 .
      w_objpack-body_num = l_lines_bin.
      w_objpack-doc_type = c_pdf.
      w_objpack-obj_name = c_smart.
      w_objpack-obj_descr = attach_name.
      APPEND w_objpack TO i_objpack.
      CLEAR w_reclist.
      w_reclist-receiver = emailid.
      w_reclist-rec_type = c_u.
      APPEND w_reclist TO i_reclist.
      CLEAR:w_reclist.
    * Send Mail
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = w_doc_chng
          put_in_outbox              = c_x
    *      commit_work                = c_x
        TABLES
          packing_list               = i_objpack
          object_header              = w_objhead
          contents_bin               = i_objbin
          contents_txt               = i_objtxt
          receivers                  = i_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
      ENDIF.
      READ TABLE i_reclist INTO w_reclist INDEX 1.
      IF sy-subrc IS INITIAL.
        return = w_reclist-retrn_code.
      ENDIF.
    *Clear Refresh Data
      CLEAR: l_lines_bin,
             l_lines_txt,
             l_len_in,
             i_record,
             i_objpack,
             i_objtxt,
             i_objbin,
             i_reclist,
             i_tline,
             w_record,
             w_objpack,
             w_objtxt,
             w_objbin,
             w_reclist,
             w_tline,
             w_doc_chng,
             w_buffer,
             w_objhead.
      REFRESH:i_record,
             i_objpack,
             i_objtxt,
             i_objbin,
             i_reclist,
             i_tline.
    ENDFUNCTION.

  • Reg. Commit Work Response time

    Hi All,
        Could you please let me know to which factors the response of the Commit work belong to.
    Regards,
    Sen

    Hi,
    Commit work for the database tables.
    Regards,
    Naresh.

  • Invalid COMMIT WORK in an update function module.

    Hi,Experts,
         Currently We got a problem for posting PO's GR with t-code MIGO. Our requirement is that can create Delivery by automaitcly after PO's GR is saving. Then I have tailored a program for creating delivery.The program will be triggered in an output type when saving action is done.
    Error info is as below
    "Calling a COMMIT WORK in an update process is not allowed
    because the function modules triggered in a Logical Unit
    of Work cannot then be processed correctly."
    Any help will be appreciated
    Thanks in advance
    Richard Zhou

    Hi Richard,
    First create an implementation for the BADI in se19,
    then in any of the methods put break point and run MIGO
    You can clearly see in the debugger what all values come
    Please note that u have 2 methods
    one works in update task and another as normal function module..to view the documentation of the BADI->go to se18 -> enter the name of the BADI -> Display -> click on documentation to View the purpose and use of the BADI you have mentioned,Please note that all BADIs may not have documentations.............
    Also if u feel that the replies are helping you out please reward points....this way the SDN members will be willing to do a bit more homework for you and help you out...
    To proceed with the BADI
    Please check the documentation below
    Business add-ins when creating a material document
    The enhancement MB_DOCUMENT_BADI has two methods that are called up by the same interface, though at different times. All material document data from the following tables is transferred to this business add-in:
    MKPF (material document header)
    MSEG (material document items)
    VM07M (update data)
    This data can be used in other programs, but cannot be changed.
    The methods differ according to the time at which they are called up:
    The method MB_DOCUMENT_BEFORE_UPDATE is called up before the FI document is created. This means that it is called up even if the program is terminated by an error during the subsequent processing. The update of data in separate tables should always be contained in function modules that are called up with the addition 'in update task'. This ensures that all the data is updated consistently.
    The method MB_DOCUMENT_UPDATE is not carried out until update. This means that all updates are carried out immediately in their own tables and do not have to be contained in 'update task' in function modules. For performance reasons, you should not re-read the tables or carry out any time-consuming routines at this point.
    You should always call up MB_DOCUMENT_BEFORE_UPDATE before MB_DOCUMENT_UPDATE, particularly if time is a critical factor when posting the material documents. The method MB_DOCUMENT_UPDATE is processed after the FI document numbers are called. As a result, no other FI documents can be posted until this document is completely updated.
    Even if the two methods are in the same class, you cannot access the same global fields, as the methods are called up at different times and are therefore carried out in another roll area.
    From the business add-in display, you can go to coding examples for both methods by choosing Goto -> Example coding -> Display
    Note
    The enhancement does not transfer any data to the material document, that is, you cannot change material document data before it is updated.
    If this business add-in is not set up properly, it may result in an inconsistency between the documents and the stocks and between the material documents and the accounting documents. Inconsistencies like these may be caused by the following elements in the business add-in:
    COMMIT WORK
    Remote function call (CALL FUNCTION ... DESTINATION)
    Own updates in document tables or stock tables (for example, update in tables MBEW, MARD, MSEG)
    The unlocking of data (for example, via DEQUEUE_ALL)
    Before the two business add-ins are called up, data is already flagged for the UPDATE. If a COMMIT WORK or a Remote Function Call is transmitted in the enhancement, these are written in the database. If another error occurs after the business add-ins are processed, you cannot carry out a complete ROLL BACK, as the data up to the COMMIT or Remote Function Call has already been written in the database. This can result in an inconsistent status (for example, material document without accounting document), which can only be repaired with considerable cost and effort.
    The business add-ins are not suitable for customer-specific updates in the stock tables, as updates like these destroy the standard stock update.
    Unlocking the data (for example, via DEQUEUE_ALL) is also critical, as the data that is to be updated is no longer protected from updates from external systems, and inconsistencies can result from parallel updates.
    Before you activate an enhancement, check carefully that the business add-in does not contain any critical coding places.
    If data inconsistencies have already occurred in your system as a result of the business add-in, remove the critical coding so that it does not cause any further inconsistencies.
    Regards
    Byju

  • Commit work not working in Routine for Transaction because of LUW

    Hi all,
    i have req to send adobe PDF as attachement by email.
    Basically i am calling adobe from output type of VL02n .
    Inside this i can not use commit work because of LUW.Please suggest what should i do.
    so not able to send email in green status.
    i am using below code
    TRY.
          zlcl_send_request->set_document( zlcl_document ).
        CATCH cx_send_req_bcs INTO zicl_oref_cast.
          CLEAR gv_text_cast .
          gv_text_cast = zicl_oref_cast->get_text( ).
      ENDTRY.
    Email sender
      TRY.
          zlcl_sender =  cl_sapuser_bcs=>create( sy-uname ).
        CATCH cx_address_bcs INTO zicl_oref_cast.
          CLEAR gv_text_cast .
          gv_text_cast = zicl_oref_cast->get_text( ).
      ENDTRY.
      TRY.
          CALL METHOD zlcl_send_request->set_sender
            EXPORTING
              i_sender = zlcl_sender.
        CATCH cx_send_req_bcs INTO zicl_oref_cast.
          CLEAR gv_text_cast .
          gv_text_cast = zicl_oref_cast->get_text( ).
      ENDTRY.
    Create the Reciever address
      TRY.
          zlcl_recipient = cl_cam_address_bcs=>create_internet_address(
                                             gv_email ).
        CATCH cx_address_bcs INTO zicl_oref_cast.
          CLEAR gv_text_cast .
          gv_text_cast = zicl_oref_cast->get_text( ).
      ENDTRY.
      TRY.
          zlcl_send_request->add_recipient( EXPORTING i_recipient =
          zlcl_recipient ).
        CATCH cx_send_req_bcs INTO zicl_oref_cast.
          CLEAR gv_text_cast .
          gv_text_cast = zicl_oref_cast->get_text( ).
      ENDTRY.
      TRY.
          zlcl_send_request->set_send_immediately( gc_x ).
        CATCH cx_send_req_bcs INTO zicl_oref_cast.
          CLEAR gv_text_cast .
          gv_text_cast = zicl_oref_cast->get_text( ).
      ENDTRY.
    Send the mail
      TRY.
          zlcl_send_request->send( ).
        CATCH cx_send_req_bcs INTO zicl_oref_cast.
          CLEAR gv_text_cast .
          gv_text_cast = zicl_oref_cast->get_text( ).
      ENDTRY.

    Hi
    From abap help:
    SY-ONCOM
    On Commit flag. This system field is set to different values depending on the call status of an ABAP program. Of these, only the value of u2018Pu2019 is guaranteed. If at all, SY-ONCOM must only be queried for u2018Pu2019.
    The value 'P' means that the program is already executing a subroutine started using PERFORM u2026 ON COMMIT and therefore a
    further subroutine call using PERFORM ... ON COMMIT would cause a runtime error.
    That means the variable SY-ONCOM has the information if a process "ON COMMIT" is working and so it determines if a dump has to be raised.
    Now it's clear the meaning of that correction: if before calling a new commit the value of SY-ONCOM is changed the dump will be avoided.
    I've done the following texts:
    REPORT  ZCOMMIT.
    WRITE: 'Calling routine on commit'.
    PERFORM DO_SOMETHING ON COMMIT.
    COMMIT WORK.
    FORM DO_SOMETHING.
      DATA: ONCOM TYPE SY-UCOMM.
      MOVE SY-ONCOM TO ONCOM.
      SY-ONCOM = 'S'.
      COMMIT WORK.
      MOVE ONCOM TO SY-ONCOM.
    ENDFORM.
    The code above is very dangerous, because it triggeres a ricorsive loop: no dump, but the form is continuously called, just as help says SY-ONCOM is equal to P
    REPORT  ZCOMMIT.
    WRITE: 'Calling routine on commit'.
    CALL FUNCTION 'Z_MAX_COMMIT' IN UPDATE TASK.
    COMMIT WORK.
    FUNCTION Z_MAX_COMMIT.
      DATA: ONCOM TYPE SY-UCOMM.
      MOVE SY-ONCOM TO ONCOM.
      SY-ONCOM = 'S'.
      COMMIT WORK.
      MOVE ONCOM TO SY-ONCOM.
    ENDFUNCTION.
    I expected the same behavior as above, but here no dump and no infinite loop, SY-ONCOM = V
    Now your process working in update task, but probably many function are called, I mean the system creates a queue of functions to be run in update task, so what happens here?
    I've tried this:
    FUNCTION Z_MAX_COMMIT.
    *"*"Function module di reg.:
    *"*"Interfaccia locale:
    *"  IMPORTING
    *"     VALUE(NO_COMMIT) TYPE  FLAG DEFAULT SPACE
      CHECK NO_COMMIT IS INITIAL.
      DATA: ONCOM TYPE SY-UCOMM.
      MOVE SY-ONCOM TO ONCOM.
      SY-ONCOM = 'S'.
      COMMIT WORK.
      MOVE ONCOM TO SY-ONCOM.
    ENDFUNCTION.
    REPORT  ZCOMMIT.
    WRITE: 'Calling routine on commit'.
    CALL FUNCTION 'Z_MAX_COMMIT' IN UPDATE TASK
      EXPORTING
        NO_COMMIT = 'X'.
    CALL FUNCTION 'Z_MAX_COMMIT' IN UPDATE TASK.
    CALL FUNCTION 'Z_MAX_COMMIT' IN UPDATE TASK
      EXPORTING
        NO_COMMIT = 'X'.
    COMMIT WORK.
    Here no dump and no infinite loop too, but also no impact on the rest of the functions,
    I can suppose the impact will be on the saving of data on database only, because your COMMIT ends the LUW, so it's very important the routine for printing is called at the end, after all saving routines.
    Max

  • Follow-up action : please help - Inspection Lot related

    Hi,
    I am having the following trouble:
    Through MB02, a printout is generated to the local printer (LOCL).
    However, through QA11, when we save, we have a custom follow-up action attached that pops-up a
    dialog screen.
    The follow up action is triggered when a usage decision is changed for the inspection lot.
    The follow-up action (configured in IMG) calls a Function Module and a screen, which in turn populates
    a value into a custom DB table (based on the buttons, on the screen, sending either to LOCL or to a
    zebra printer).
    Now, what has to happen is that after inserting the value into a custom table, it should also open a sapscript and output.
    The Sapscript and print program are there, with the print program being created 3-4 years ago by someone
    else. However, even though we have code in the print program to update nast, in turn creating a message
    for output (1st the custom DB table is checked to see if the values match, MATNRCHARG), It does not update
    NAST. When we go through MB02, it does, but this should happen automatically after selecting one of the radio
    buttons on the original pop-up & selecting print.
    Please help. I don't know what to do and can't enable a debugger from the pop-up and if going though QA11,
    I can't get it to stop inside the print program (only inside the custom FM).
    Cheers,
    John

    hi
    kindly check whether this FM will work for you QFOA_OBJECT_STATUS_SET
    regards
    thyagarajan

  • CO54: Message is not sent to any destination: Commit Work is getting failed

    Hello,
    While processing the Messages from XFP to SAP Update is getting terminated due to the use of Commit Work. SAP Note 147467 - Update termination when sending process messages has been referred which is for 4.6C, but we are in ECC6.0.
    While processing the message in second iteration Commit Work triggres and Update happens in the data base.
    Following Issue is only concerned with Nested HUs
    T-Code used CO54
    Following are the analysis:
    it looks like u201CCreate and Post a Physical Inventory Docu201D is failing in the initial processing because the inventory doc is created when the Transfer Order to the PSA (or the TO from the PSA) is not yet completed (quant is still locked somehow).
    CO54, process message category=ZHU_CONS: HU to be consumed is a nested pallet (unpacking/ repacking and TOs to/from) and qty to consume is greater that HU qty in SAP (creation of a physical inventory doc is required).
    1. The error occurs while clearing the inventory posting for the physical inventory document.
    2. The surprising factor is the u201CProcess Messageu201D is not processed correctly for the first time.
    3. Indeed it is successfully processed without any error if you do process it second time.
    Error Log from C054 T-Code.
    02.08.2010                                         Dynamic List Display                                                1
    Type
    Message text
    LTxt
    Message category: ZHU_CONS ---    Process message: 100000000000000621   "Send to All Destinations" Is Active
    Message to be sent to destination:
    ZHGI ZPP_0285_XFP_GOODSISSUE Individual Processing Is Active
    => Message will be sent to destination (check log for destination)
    Message category: ZHU_CONS ---    Process message: 100000000000000621   "Send to All Destinations" Is Active
    Message destination ZPP_0285_XFP_GOODSISSUE triggered COMMIT WORK
    Input parameters OK, passed to source field structure
    Step 0: Now checking if scenario with HU
    Step 2: Scenario with HU, Now checking if HU nested
    Step 3: HU nested, checking if HU in repack area
    Step 4: HU not in repack area, moving it to repack area
    HU moved to repack area, TO number 0000000873
    Step 5: Depacking nested HU...
    Nested HU depacked, HU pallet n°: 00176127111000461994
    Steps 6-7: Moving back HUs to supply storage type / bin...
    HU 00376127111000462001 moved back to original area with TO number 0000000875
    Steps 6-7: Moving back HUs to supply storage type / bin...
    No need to move back HU 00176127111000461994 (not in table LEIN)
    Step 8: Checking if HU fully used and quantity matches HU system quantity
    HU not fully used but picked quantity > HU quantity: inventory necessary
    Step 9: Inventory needed, creating physical inventory document...
    Physical inventory document 0000000126 created
    Step 10: Adding weighted quantity on inventory document...
    Weighted quantity entered in document 0000000126
    Step 11: Posting rectification in inventory document 0000000126...
    Physical inventory document 0000000126 rectified
    Error: rectification for doc 0000000126 not updated in DB!
    => Destination ZHGI ZPP_0285_XFP_GOODSISSUE can currently not process the message
    => Message is not sent to any destination
    The errors in SM13 for this contain the program SAPLZPP_0285_HUINV_ENH (creating/changing the HUM physical inventory doc). WM Function module L_LK01_VERARBEITEN is also involved.
    From SM13, it displays the following piece of code in include LL03TF2M (read the LEIN table=Storage Units table):
    WHEN CON_LK01_NACH.
           IF (LEIN-LGTYP = LK01-NLTYP AND         
                 LEIN-LGPLA = LK01-NLPLA) OR
                  NOT P_LEDUM IS INITIAL.
           ELSE.
    Das ist der Fall einer TA-Quittierung wo Von-Hu = Nach-HU ist und sofort die WA-Buchung erfolgt. Dann steht die HU noch auf dem Von-Platz, daher darf hier kein Fehler kommen, sondern es wird ein. Flag gesetzt, daß verhindert daß die LE fortgeschrieben wird.
             FLG_NO_LE_UPDATE = CON_X.
            MESSAGE A558 WITH P_LENUM.
           ENDIF.
    Translation in English of the German text via Google:
    "This is the case where confirmation of a TO source-HU = destination-HU, and now the WA (Good Issue?)- made book. Then, the HU is still on the From-space may therefore come here not a mistake, but it sets a flag that prevents that the LE is updated."
    Thanks and Regards,
    Prabhjot Singh
    Edited by: Prabhjot  Singh on Aug 2, 2010 4:39 PM

    Hope you have carried out following things in Production ( Please refer to SAP help before actually doing it in production).
    1. Transport the predefined characteristics from the SAP reference client (000) to your logon client.
    2. Adopt Predefined Message Categories - In this step, you copy the process message categories supplied by SAP from internal tables as Customizing settings in your plants.

  • Follow up action worklist

    Hi,
    What is follow up action work list and where do we define it?
    Regards
    Deepak

    In simple language Followup action nothing but certain action with be performed if predecessor activity performed.
    Take example of UD.Against UD code you assign some followup atcions.Now when you select some UD code like "Rejected" ,then you can send mail/trigger mail automatically in the background  to a mailbox stating the rejection of the material ,as a followup action.
    I hope this add some value aprart from std definations...

  • Trigger follow up action in Auto UD

    Hello Gurus,
    we have defined follow up action after making UD of inspection lot. the logic is to move the stock from one Sloc to other after UD is made.
    This follow up action works well when we make UD in QA11 (foreground). however, we observed that. when we make Auto UD using background job, the follow up action is not triggered.
    Is there any config we are missing? or this is a standard functinality?
    Thanks.
    S J

    Hi,
    To my understanding there is no further special configs available which is not working in background but in foreground it is working and MvT 311 is happening successfully.
    If you are using any custom MF linked to the follow-up actions, then better you speak to ABAP team colleague to double check if the assigned FM is background compliant too.
    If you are using any standard FM, please can you share the same with us so that if someone has worked with it, they may share their thoughts.
    Thanks,
    Arijit

  • Follow-up action in IW42

    Hello.
    I'm currently using a notification task (linked to a follow-up action) to generate a notification N3 from a notification N1.
    It works perfectly in transaction IW22.
    When I try to use the same task in IW42, the notification gets updated but no follow-up action is triggered....
    Any idea?
    Thanks,
    Nicolas

    Hi,
    Copy the function module in customizing under Quality Inspection -> Follow up action and modify the standard functional module as per your requirement by the help of ABAPer and assign the same functional module to same IMG.
    Regards,
    Babu.S

  • Follow Up action for UD

    Hi,
    My client uses inspection type 89 for creating inspection lot. They have HU/SU management active in warehouse. When inspection lot is created for production batch, material stock and HU's are shown in quality inspection. When UD 1000 (Accept) is made, they have a follow up action FM linked to it which posts the HU's to unrestricted stock using VLMOVE 321 movement. The process works correctly through QA11. But when I do UD using BAPI BAPI_INSPLOT_SETUSAGEDECISION in custom program, the follow up action is not triggered. The stock remains in QI. Do I need to call the follow up FM also in program? Why does BAPI not trigger follow up action?
    Thanks,

    Please see OSS note 1865492.

  • Follow up action to set delete flag after UD (QS41, QS51)

    Hi all,
    If user give UD as 'not good' for Equipment (eg Vernier Caliper) then he has to set delete flag for maintenance plan no and Equipment no through IP02 and IE02 respectively
    now he want that, above delete flag should set automatically after giving UD so particular maintenance plan or equipment should not release in future.
    I got one follow up action 'QM_PM' in transaction QS51 due to this after giving UD for Inspection lot, plan get technically complete (TECHO)
    so how to make changes so i'll achieve above functionality
    plz tell me about catalog, follow up action, QS41
    thanks....

    Hi all,
    i got one solution on which i am working
    Steps:
    1.The solution is to use the User Exit namely QEVA0010 and use the logic as mentioned below.
    2. Test and use the above mentioned user exit.
    3. The first condition should be checked for Inspection Type - 14 and for UD code NG.
    4.Logic to be used To set the deletion flag for the Equipment.
       Go to Table QAPP - Pass inspection lot Number and get the Equipment no.
       Go to Table EQUI - Pass Equipment no and get OBJNR  
    Go to Table JEST - Pass the Objnr - The value for deletion flag status is active is I0076 and the value for deletion  flag inactive is I0320.
       In order to set the deletion Flag,use help of FM - STATUS_CHANGE_INTERN to code.
    5.Logic to be used To set the deletion flag for the Maintenance Plan.
    Go to Table QALS - Pass inspection lot no and get the order no.
    Go to Table AFIH - Pass order no - Get maintenance Plan.
    Go to Table MPLA - Pass the maintenance plan and get the Objnr no.
    JEST - Pass the Objnr - The value for deletion flag status is active is I0076 and the value for deletion flag inactive is I0320.
      In order to set the deletion Flag,use help of FM - STATUS_CHANGE_INTERN to code.

Maybe you are looking for

  • Mail cannot open in the file format presented

    every so often, I get an error message in Mail on my iPad telling me, that it can't open the message in the file format sent. 'Ask sender to re-send in a different format.' On the other hand, the same message will open perfectly in Mail on my MacBook

  • Black screen and no sound with iTunes rentals.

    I was going to chalk this up to just a corrupt download, but it's happening too much for mere coincidence now. I rented Captain America: The First Avenger in HD on my Windows 7 machine, only to find that when I tried to play it, I got nothing more th

  • Rebate reporting requirement

    Hi Gurus, We have report requirement related to rebate, where in we need to show the follwing field in the output. Rebate No: Total Accruals posted: Accruals reversed: Credit note amount. Can any one throw some light in which table and field the valu

  • Detecting when Interactive Download button is pressed

    My company wants me to trap and log when users click on the Interactive DownLoad button. Is there a way to know when this happens? I checked usage stats, the dbug log. I also checked possible Dynamic event options. Thanks

  • UserInfo Object - adding a UserInfoMap record for PEI

    I am creating a onAfterLogin PEI, which uses "LookupUserInfoSettings("DefaultCommunity") to force a redirect to a User's default community. That default community will be populated into the PTPropertyData table via a PWS (which has not yet been writt