How to extract error message for each output type.

Hi All,
Need your advice on the problem that I have.
Expected Solution:
1. Create an extra column for displaying header output error message from VF02 into a report program.
Steps that i have did:
1. Go to transaction VF02.
2. Enter a billing document number.
3. Hit enter. Click "Goto" > Header> Output
4. Click on the status that is red colour. Click on "processing log".
5. Press "F1" on the red colour message type. (Found out that it is a structure).
Need your advice on the question that I have:
1) How do we know that which "not successfully" process output type belong to which error message class?

Hi Brad Bohn,
Thanks for your advice. I am so sorry about that. Thanks so much for your advice. And i have follow your advices and steps given by you. Appreciate it very much.
But for this issue about how to extract message for each output type. I have follow your steps by using SE30 to trace VF03 and I managed to found out that they are using this function module "WFMC_PROTOCOL_SHOW". Need your advice on this, how do we know each different output type with different error message is pulled from?
From my further research and in depth debugging into this function module, i  manage to find this global internal table "PROTO_TAB" which stores all the text messages for each output.  How does this internal table is populated?
Thanks in advance.
Regards
Shawn

Similar Messages

  • How to display error message in Billing Output Type (VF03).

    Hi,
    could anyone suggest how do i display error message via billing (VF03) output type?

    i want to display an error message from my sapscript program.
    *determine discount
    it_zmas-discount = it_zmas-gross_value - zkwert.
    MODIFY it_zmas.
    ELSE.
    MESSAGE ID 'Z0' TYPE 'S' NUMBER '999' WITH 'Please maintain cust pricing grp 34 for ' wa_zmas-matnr.
    p_proc_screen = 'X'.
    ENDIF.
    when user enter billing doc no in vf03, user will click 'issue output type' and select their output type to be printed out.
    if there's an error in the print program, it should promt out an error message and do not allowed user to print preview and print the form out.
    what i had did previously, i prompt the error message and disable the print preview button. i think its not a good solution and i am not sure how to stop the form from not printing it out.
    i was wondering is there any user exit of the output type, vofm (which i had this solutions from my previous question, but unsure how to use it) or any other solutions.
    please help.

  • How to set error message for 541 Movement type

    Dear gurus,
                I want to know that is it possible to set error message through any configuration? My requirement is that when we create issue document using m.t 541 it will not allow me to process that document without releasing PO document.so for that i want to set error message.
    <removed by moderator>
    Message was edited by: Jürgen L

    Hi,
       The subcontracting goods issue can be done even without PO reference. If your organization is strictly following the goods issue against PO only and you want to restrict the goods issue if the PO is not released, then you may check the below option. Please note that the below option is available in standard only from EHP 4 or above.
    1. Refer the KBA: 1915825 - Transfer Posting reference to a Purchase Order in MIGO and activate the PO reference option in MIGO - Transfer posting.
    2. Restrict the use of 541 movement in MB1B - Go to OMJJ and enter movement type as 541. Now go to "allowed transactions" folder and remove MB1B. Now the user cant use 541 in MB1B.
    3. Maintain the field - Purchase order as mandatory field for the movement type 541 in OMJJ.
    4. Train the users to use MIGO - Transfer Posting - Purchase order option for goods issue with 541 movement.
    5. If the PO is not released, system wont allow to use the PO in MIGO - Transfer Postings.
    6. If the user is selecting Transfer Posting - Other, system wont check the PO and hence it will allow to post the goods issue even if PO is not released. You may take organizational measures to restrict the usage or you may check for authorization concept - Refer the note: 773003 - MIGO: No authorization object for action/reference document
       If you are below EHP 4, there is no standard functionality available for the requirement as of my knowledge. If so, you may go for development to restrict the same.
    Regards,
    AKPT

  • Display error messages for each material

    Hi All,
    I am using a BAPI which gives errors in return table.I am executing this BAPI for several materials in a LOOP.I need to display the error messages for each of these materials as shown below:
    Material 1:
    error1
    error2
    Material 2:
    error 1
    error 2.
    What is the best way to display this?Also plz let me know how to use REUSE_ALV_HIERSEQ_LIST_DISPLAY?
    Thanks,
    Rakesh.

    I did the same thing in the below code, go thru it and check it.
    * calling the BAPI to update the Asset Master AS02
      loop at it_final into is_final.
    * If updating of floor area only
        if p_farea = 'X'.
    * passing new area value to the BAPI
          is_realestate-area     = is_final-grufl.
          is_realestatex-area    = 'X'.
          call function 'BAPI_FIXEDASSET_CHANGE'
               exporting
                    companycode = is_final-bukrs
                    asset       = is_final-anln1
                    subnumber   = is_final-anln2
                    realestate  = is_realestate
                    realestatex = is_realestatex
               importing
                    return      = it_return.
    * If Asset Master is changed with out any errors
          read table it_return with key type = 'E'.
          if sy-subrc = 0.
            flag = ' '.
          else.
            flag = 'X'.
    * Call the COMMIT BAPI
            call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                      wait = 'X'.
            wait up to 2 seconds.
          endif.
    * If the Asset Master is changed with out any errors
          if flag = 'X'.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_green.
              is_output-grufl_n = is_final-grufl.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting grufl_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          elseif flag = ' '.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_red.
              is_output-grufl_n = is_realestate-area.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting grufl_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          endif.
        endif.
    * If updating of lease commencement date only
        if p_ldate = 'X'.
    * Passing new lease start date value to the BAPI
          is_leasing-start_date  = is_final-leabg.
          is_leasingx-start_date = 'X'.
    * Call the BAPI to change the Asset Master
          call function 'BAPI_FIXEDASSET_CHANGE'
               exporting
                    companycode = is_final-bukrs
                    asset       = is_final-anln1
                    subnumber   = is_final-anln2
                    leasing     = is_leasing
                    leasingx    = is_leasingx
               importing
                    return      = it_return.
    * If Asset Master is changed with out any errors
          read table it_return with key type = 'E'.
          if sy-subrc = 0.
            flag = ' '.
          else.
            flag = 'X'.
    * Call the COMMIT BAPI
            call function 'BAPI_TRANSACTION_COMMIT'
                 exporting
                      wait = 'X'.
            wait up to 2 seconds.
          endif.
    * If the Asset Master is changed with out any errors
          if flag = 'X'.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_green.
              is_output-leabg_n = is_final-leabg.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting leabg_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          elseif flag = ' '.
            read table it_output into is_output with key
                                      bukrs = is_final-bukrs
                                      anln1 = is_final-anln1
                                      anln2 = is_final-anln2
                                      binary search.
            if sy-subrc = 0.
    *          is_output-c_icon  = c_red.
              is_output-leabg_n = is_leasing-start_date.
              is_output-message = it_return-message.
    * Modify the output internal table with the changed new values
              modify it_output from is_output
                               transporting leabg_n message
                               where bukrs = is_output-bukrs
                                 and anln1 = is_output-anln1
                                 and anln2 = is_output-anln2.
            endif.
          endif.
        endif.
        clear : is_final, is_realestate, is_leasing,
                it_return, flag , is_output.
      endloop.
    * Display the report out with old and new values
      PERFORM output_report.
    *&      Form  output_report
    *       text
    *  -->  p1        text
    *  <--  p2        text
    *FORM output_report.
    *  DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
    *         is_layout TYPE slis_layout_alv.
    ** Sub routine for filling the field catalog
    *  IF it_fieldcat[] IS INITIAL.
    *    PERFORM field_fill USING it_fieldcat.
    *  ENDIF.
    ** Sub routine to set the layout
    *  PERFORM set_layout USING is_layout.
    ** Function module to display the data in ALV format
    *  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    *       EXPORTING
    *            i_callback_program = l_repid
    *            it_fieldcat        = it_fieldcat
    *            is_layout          = is_layout
    *       TABLES
    *            t_outtab           = it_output
    *       EXCEPTIONS
    *            program_error      = 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.                    " output_report
    *&      Form  field_fill
    *       text
    *      -->P_IT_FIELDCAT  text
    *FORM field_fill USING pt_fieldcat TYPE slis_t_fieldcat_alv.
    *  DATA : ls_fieldcat TYPE slis_fieldcat_alv,
    *         pos TYPE i VALUE 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'C_ICON'.
    *  ls_fieldcat-seltext_m     = 'Change Status'.
    *  ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'BUKRS'.
    *  ls_fieldcat-ref_fieldname = 'BUKRS'.
    *  ls_fieldcat-ref_tabname   = 'ANLA'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'ANLN1'.
    *  ls_fieldcat-ref_fieldname = 'ANLN1'.
    *  ls_fieldcat-ref_tabname   = 'ANLA'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'ANLN2'.
    *  ls_fieldcat-ref_fieldname = 'ANLN2'.
    *  ls_fieldcat-ref_tabname   = 'ANLA'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *  IF p_farea = 'X'.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'GRUFL'.
    *    ls_fieldcat-ref_fieldname = 'GRUFL'.
    *    ls_fieldcat-ref_tabname   = 'ANLA'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'GRUFL_N'.
    *    ls_fieldcat-seltext_l     = 'New Floor Area'.
    *    ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *  ENDIF.
    *  IF p_ldate = 'X'.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'LEABG'.
    *    ls_fieldcat-ref_fieldname = 'LEABG'.
    *    ls_fieldcat-ref_tabname   = 'ANLA'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *    ls_fieldcat-col_pos       = pos.
    *    ls_fieldcat-fieldname     = 'LEABG_N'.
    *    ls_fieldcat-seltext_l     = 'New Lease St.Date'.
    *    ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *    APPEND ls_fieldcat TO pt_fieldcat.
    *    CLEAR ls_fieldcat.
    *    pos = pos + 1.
    *  ENDIF.
    *  ls_fieldcat-col_pos       = pos.
    *  ls_fieldcat-fieldname     = 'MESSAGE'.
    *  ls_fieldcat-seltext_l     = 'Status Message'.
    *  ls_fieldcat-tabname       = 'IT_OUTPUT'.
    *  APPEND ls_fieldcat TO pt_fieldcat.
    *  CLEAR ls_fieldcat.
    *  pos = pos + 1.
    *ENDFORM.                    " field_fill
    Regards
    Gopi

  • Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Firefox will not show links to flv files. I get the error message for each flv file: "File not found. Firefox can't find the file at http:// (path) .flv." Any mov and swf files in this same path will show. I can see the videos in Safari so the paths are correct.

    Is this a webpage that contains a link to a flv file? Please post a link to the page and tell us which link(s) are the problem flv files or else post a link to the .flv file itself.
    Alternately, click on one of the sample FLV File links on this page and tell us exactly what happens:
    http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html
    It might also help if you post the exact error message, including the path to the flv file.
    '''Note:'''
    Depending on how you have Firefox set up, clicking on a FLV File link will either save the FLV file to your computer or Firefox may open it automatically in an external application right after downloading (Firefox may ask you first). Firefox itself can't play FLV files so you need a "helper" application (or a plugin for flv files, if ther is one. You can see if Firefox is already set up to download or open FLV files by going to Firefox Preferences and looking in the Applications list. Find the FLV file type in the list and, if the action is "Open with", it should show the application that can play FLV files (e.g., VLC Media Player or Perian). See [[Managing filetypes]] for more information.

  • How to prevent error message for material description in MDG material detail screen, when user click on check action

    Dear Experts,
    I have a requirement for making material description as non mandetory in change request view of mdg material screen.
    I have done that using field usage in get data method of feeder classes, but still message is displaying.
    This message 'Material description is mandatory is displaying with check action only, but not with save or submit after i anhance field property as not mandetory.
    How to prevent error message for material description in MDG material detail screen, when user click on check action.
    Thanks
    Sukumar

    Hello Sukumar
    In IMG activity "Configure Properties of Change Request Step", you can completely deactivate the reuse area checks (but will then loose all other checks of the backend business logic as well).
    You can also set the error severity of the checks from Error to Warning (per CR type, not per check).
    Or you provide a default value for the material description, e.g. by implementing the BAdI USMD_RULE_SERVICE.
    Regards, Ingo Bruß

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • How to write Error message for select options?

    Hi
    i have this select option statement
    SELECT-OPTIONS: s_fevor FOR afko-fevor.
    how to write error message for this?
    Regards
    Smitha

    Error messages are displayed for Select-options mostly on two conditions:
    1) You needs to check wether a value is entered or not its done by:
    a)
    Select-options:SELECT-OPTIONS: s_fevor FOR afko-fevor Obligatory.
       In this case error message is automatically throwed by system.
    b) You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    IF S_FEVOR-LOW IS INITIAL.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    2) You need to Validate the entered value:
    You can do this in Selection Screen events.
    Ex:
    AT SELECTION-SCREEN./AT SELECTION-SCREEN ON S_FEVOR.
    SELECT FEVOR
                 FROM AFKO
                 INTO AFKO-FEVOR
                 UP TO 1 ROWS
    ENDSELECT.        
    IF SY-SUBRC NE 0.
    MESSAGE 'XXXXX' TYPE 'E'.
    ENDIF.
    Regards,
    Gurpreet

  • How to Add error message for component from the baking bean

    I am in the situation, I need to add the h:message message component for each component at the time I am looking for an easy process something like I have to add the error message at the bean side, here I am using component binding approach but I am not able to add child for input Text components at the bean side, actually my final target is to add the message for each component when ever they get error and I have to change the style also.....
    So please anybody help me......

    Thanks for the response but one more thing right now I can't add message tag for each component so that I can add message from the baking bean as per ur solution I tried like this
    FacesMessage msg = new FacesMessage("Testing is going");
    msg.setSeverity(FacesMessage.SEVERITY_ERROR);
    FacesContext.getCurrentInstance().addMessage(tf_ADD1.getId(), msg);
    it is working but it is showing on the top of the for even no problem but I need to change the component color based on the message but I am not able to achieve that so how can I do that from backing bean now I can't add tags for each component.
    So please show me a way.

  • Printer stopped working. Different error messages for each application.

    Hello. Recently I have been unable to print anything from any application and get different error messages from each application. For example:
    Word says "Word cannot print due to a problem with the current printer. Make sure you have a printer selected in Print Canter. You may need to print again or adjust your printer settings."
    Entourage says "An error occurred while printing. Not enough memory."
    Excel says "Microsoft Excel could not communicate with the printer."
    Preview says "Print. Error while printing."
    I have tried installing new drivers, repairing the disk and permissions, and deleting and adding the printer from the System Preferences.
    I am running OS X 14.4.10 on an iMac G4 1.25 GHz PowerPC with 256 MB DDR SDRAM.
    Any ideas? Thanks.

    Try downloading the 10.4.10 Combination Updater from Apple and re-update.
    If that doesn't help try the free trial of Printer Setup Repair from www.fixamac.net.
    If those don't help, reinstall OS X using the Archive & Install option in the installer.

  • How to add an error message to an Output Type.

    Hello SAPients,
    Using a User Exit I'm modifying the segments of an outbound IDoc. When certain conditions apply I trigger an exception 
    RAISE DATA_NOT_RELEVANT_FOR_SENDING.
    It's ok because the IDoc is not generated and the Output Type is set to "Incorrectly Processed" status.
    But, when the user clicks the "Processing Log" button there is no informatio of the error occurred. How can I add an error message to the Processing Log of the Output Type?
    Thanks in advance for your kind help.

    Hi,
    Try this statement..
          MESSAGE ID      sy-msgid << Your msg class
                  TYPE    sy-msgty << Your message type
                  NUMBER  sy-msgno << Your msg no.
                  WITH    sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 << Other info
                  RAISING data_not_relevant_for_sending.
    Regards,
    Joy.

  • How to get error message for VISA in CVI?

    Hi there,
      I was using labview 2012 to handle GBIP interface with VISA, the VISA write code will return an error cluster if exists. Recently, I switch to CVI and I use viWrite to write to the GBIP, but in this case, how can I get the error cluster?

    Erik-S wrote:
    Hi dragondriver,
    There is not an error cluster in CVI in the same way that there are error clusters in LabVIEW. A VISA function should output an integer if there is an error, but it will not include a string and a boolean like LabVIEW does. You can set up a function that acts like an error cluster by creating a struct that has the error integer, a string related to that integer, and a boolean. You would have to use the integer to look up the error string from a library. 
    -Erik S
    Thanks Erik. I found that when I operate the VISA, it actually return a number to tell success or failure only. I wonder how to extract the error message as string in CVI?

  • How to pass error message for an additional tab strip in MIGO

    Hi,
    I have created one additional tab strip in MIGO transaction,In that tab i have 5 text fields,In that 4 text fields i want to make as mandatory fields,In the existing screen MIGO is using " Application log"  for passing any error message It is calling as include program in SAPLMIGO report program,In that "lmigolo2 " is the include program name.Now i am struggling how to make use that in my newly created screen.
    Regards
    Ambili B

    Hi rahul,
    Can u try these
    :Object failed to run due to an error while processing on the Job Server.
    2 )Object failed to run due to an error
    3 )Object failed to run due to an error while proc... | SCN

  • How to define error message for function based index violation?

    Hi,
    I am generating Forms 6i from Designer 6i. I have a function based index to enforce case insensitive name uniqueness. With check constraints I can specify constraint violation error messages that will be displayed in Forms at runtime if needed. How can I do this with function based index constraints?
    Regards,
    Tamas

    OK, problem sorted.
    You need to create a check constraint with the same name as the new index, but don't enable it.

  • How to display error messages for Standard validators

    I am designing a simple login application.I have two input text-fields,say,email and password.
    In my JSF page i have following,
    <h:inputText id="email" value="#{User.email}" >
    <f:validateLength minimum="1" maximum="6"/>
    </h:inputText>
    <P><BR>
    <B>Password: </B>
    <h:inputSecret id="password" value="#{User.password}" required="true">
    <f:validateLength minimum="1" maximum="5"/>
    </h:inputSecret></P>
    Now if the user does not enter anything in one or both of the text boxes i.e if null value is transfered to the server,
    I want the JSF to display some error message to the user that he has not filled up all the fields correctly.
    Even i tried with something like,
    <B><h:message for="email"/></B>     
    but still it does not work.
    I am using JSF1.0 Final.
    Well this problem was dam simple with JSF1.0 beta beacause of the existence of <h:output_errors>.
    Is there any such facility with JSF1.0 final?

    Your h:inputText does not contain required="true". I guess, it should. Otherwize, validateLength will not work.

Maybe you are looking for

  • Print Layout : Amount in Words

    Hai To All,        I customize print layout of A/P Invoice on that i have some problem: 1) there iam calculating total amount.At the bottom of my page that amount should display in words.How to do that??? 2) In between repetitive Area and End of Repo

  • Premiere Elements 7 Crashing on Share DVD every time on Vista 32

    I am running Premiere Elements 7 on Vista Home Premium 32 bit. The machinse is up to specs, quad core, 3GB RAM, Ge Force 9500GT etc. I'm in the US using NTSC. Drive C; has 127GB free and E:, also internal, has 73GB free. Both get defragged and they g

  • How do I know if my Compressor is installed correctly?

    I get an error message saying to restart, or to insure compressor is installed correctly. I restarted a couple of times, and still get the message. Thisis my first time attempting to use Compressor. I have a project that is 2 hours 13 minutes long, a

  • Having Trouble Installing Visual C# 2010 Express from ISO and from Web

    I have Windows 7 Home Premium Service Pack 1, and I am trying to install Microsoft Visual C# 2010 Express from the Web and also tried from the ISO. But, the installation program is stalling and then not installing the programs....any ideas on what I

  • Installed itunes/quicktime update: Lost audio out thru MAudio firewire IF

    Any body have trouble with their firewire audio/midi interface after downloading latest itunes update? I have not backed up my computer....can't go back. Applestore genius said the update is now embedded in my system. Running latest M-Audio driver.