Please help regarding the function module 'MESSAGE_TEXT_BUILD'

hii i am a new employee.
can anyone please explain wat the following code is doing
IF sy-subrc = 0.
l_mstring = t100-text.
IF l_mstring CS '&1'.
REPLACE '&1' WITH wa_messtab-msgv1 INTO l_mstring.
REPLACE '&2' WITH wa_messtab-msgv2 INTO l_mstring.
REPLACE '&3' WITH wa_messtab-msgv3 INTO l_mstring.
REPLACE '&4' WITH wa_messtab-msgv4 INTO l_mstring.
ELSE.
REPLACE '&' WITH wa_messtab-msgv1 INTO l_mstring.
REPLACE '&' WITH wa_messtab-msgv2 INTO l_mstring.
REPLACE '&' WITH wa_messtab-msgv3 INTO l_mstring.
REPLACE '&' WITH wa_messtab-msgv4 INTO l_mstring.
ENDIF.
CONDENSE l_mstring.
i am supposed to use a function module for it
i have got a function module.
but i am not understanding wat fields shd i put in it
the function module is
CALL FUNCTION <b>'MESSAGE_TEXT_BUILD'</b>
EXPORTING
msgid =
msgnr =
MSGV1 = ' '
MSGV2 = ' '
MSGV3 = ' '
MSGV4 = ' '
IMPORTING
MESSAGE_TEXT_OUTPUT =
can anyone tell wat shd i put on msgid ,msgnr and other fields.
[email protected]

Hello,
Guid for unique identification assigned list
It think it will generate the one unique key in the program.
DATA: con_log_guid   TYPE  guid_16.
CALL FUNCTION 'GUID_CREATE'
  IMPORTING
    ev_guid_16 = con_log_guid.
WRITE con_log_guid .
Try this example it is generating a 16number id.

Similar Messages

  • Help regarding the Function Module GUID_CREATE

    Hi Experts,
    Can some one explain the functionality of GUID_CREATE function module.Thanks in advance.
    With regards,
    Srini...

    Hello,
    Guid for unique identification assigned list
    It think it will generate the one unique key in the program.
    DATA: con_log_guid   TYPE  guid_16.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        ev_guid_16 = con_log_guid.
    WRITE con_log_guid .
    Try this example it is generating a 16number id.

  • Regarding The Function Module SXMS_ASYNC_EXEC strucking In Queue

    Dear All,
    I have Written an Enhancement for standard Program MB52,  I have written an Outbound Proxy and scheduled the job in background the Job is running successfully but default the the Function module SXMS_ASYNC_EXEC is also scheduled and is it  showing an Error SYS-Fail.
    Queue Block : Action OPEN_PSA_DATAPACKAGE/2 IS NOT SUPPORTED Iam Trying to Apply the Note Pls help me in this Regards
    Regards
    Naresh

    Hi Amit,
    if you are working with abap proxies there is an error in the proxy code that you have implemented.
    Use the tcode SPROXY -> Proxy -> Test Interface (F8)
    Best Regards,
    Francesco

  • Regarding the Function module HR_READ_INFOTYPE

    Hi Experts,
    I'm using the Function module HR_READ_INFOTYPE and the code is as following
    CALL FUNCTION 'HR_READ_INFOTYPE'
            EXPORTING
              pernr     = g_pernr
              infty     = '0002'
            TABLES
              infty_tab = it0002.
          CLEAR wa0002.
          READ TABLE it0002 INTO wa0002 WITH KEY pernr = g_pernr.
    it is not fetching the data for a particular PERNR but the sy-subrc is 0 after the executing the Function module.
    Please help me out.
    Thanks
    Nivash S

    Hi Experts,
    Thanks for Ur advice. Actually there is no authorization for that particular PERNR thats why it has skipped that particular record.
    Thanks Once again,
    Nivash S
    Edited by: Nivash S on May 12, 2009 8:49 AM

  • Regarding the function module 'DYNP_VALUES_READ'

    Hi,
         There are two input fields on my popup screen.
    1. Plant
    2. OrderNo.
    I have created F4 help for the order no. But i want to capture the plant value so that i can get order no based on the plant.
    For that, i have written the below code. The internal table tl_dynpfields is not getting filled after the function module  'DYNP_VALUES_READ'  gets executed.
    Can anyone tell me what mistake i am commiting.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_pro1
    TYPES : BEGIN OF tp_dynpfields,
              fieldname  LIKE dynpread-fieldname,
              stepl      LIKE dynpread-stepl,
              fieldvalue LIKE dynpread-fieldvalue,
              fieldinp   LIKE dynpread-fieldinp,
              END OF tp_dynpfields.
      DATA : wl_dynpfields TYPE tp_dynpfields,
             tl_dynpfields TYPE STANDARD TABLE OF tp_dynpfields.
      wl_dynpfields-fieldname = 'P_PLANT1'.
      APPEND wl_dynpfields TO tl_dynpfields.
      CALL FUNCTION 'DYNP_VALUES_READ'
        EXPORTING
          dyname                         = sy-repid
          dynumb                         = '0200'
        TABLES
          dynpfields                     = tl_dynpfields
       EXCEPTIONS
         invalid_abapworkarea           = 1
         invalid_dynprofield            = 2
         invalid_dynproname             = 3
         invalid_dynpronummer           = 4
         invalid_request                = 5
         no_fielddescription            = 6
         invalid_parameter              = 7
         undefind_error                 = 8
         double_conversion              = 9
         stepl_not_found                = 10
         OTHERS                         = 11.
    Thanks,
    Ibrahim

    Hey,
    i got the value.
    thanks

  • Regarding the function module WF_WINDOWS_EXECUTE

    Can anyone tell me if the function module WF_WINDOWS_EXECUTE will work with a parameter of sap R/3 type. I mean that it works with internet sites but will it still work with the HTML pages which we design.

    hi..
    IMPORTING
    *" PARAMETER LIKE TWFSA-PARAM
    *" PROCESS_DATA LIKE WFPRCD STRUCTURE WFPRCD
    *" PROCESS_ID LIKE WFPRCK STRUCTURE WFPRCK
    *" EXPORTING
    *" PROCESS_DATA_NEXT LIKE TWFNS2 STRUCTURE TWFNS2
    *" RETURN_CODE LIKE TWFNS-RCODE
    *" TABLES
    *" ASSIGNMENTS STRUCTURE WFAS1
    *" LOGLINES STRUCTURE TLINE
    *" EXCEPTIONS
    *" WF_ERROR_PROCESS
    *" WF_NOTHING_DONE
    <b>Rewards point if useful</b>
    Regards
    Ashu

  • Regarding  the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1'

    Hi
    I am using the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send an email with tab delimited text file as an attachment. while doing this i'm facing the folloing issues.
    1. a) Here the subject line field is char 50. My subject line is more than 50 characters. Is there any other way to do so?
    1.b) I am facing the data alignment problem in attached file if it is the case of Text file.
    can you please let me know how to resolve these issues and also let me if there are any other function modules to do so.

    Hi!
    1. You will have to manage with a subject of 50 char. In any case a longer subject would not be visible in your mailbox.
    2. For TAB delimited contents: Concatenate the fields of your internal table separated by HEX 09 (TAB). For every new line add HEX 0D at the end of the string.
    Cheers!

  • Regarding the function module --error is coming.

    Hi All
    I am executing function module and i am getting one error after actvating that FM.
    Error is - REPORT/PROGRAM statement missing, or program type is I (INCLUDE).          
    Waiting for the fovarable reply.

    Hi,
    While creating a FM you will be assigned to a Function Group, that Function Group is not active. If function group is not active then only you will be getting this error.
    To over come this issue. Please do the below process.
    Go to Se80--> Select Function Group from the drop down list --> Select the function group --> Right click on the Function group --> Select activate.
    After above process is completed.
    Test the Function Module.
    Thanks,
    Sriram Ponna.

  • Regarding the function module.

    hi,
    iam using a function module in my program
    GET_PRINT_PARAMETERS
    the program is going to dump.
    iam not understood why it is going to dump.
    please provide me the solution for this issue
    thanks in advance

    HI,
      Please check the type of parameters that you are passing to this function module...   check for the function module definition and get the type of the parameters that you havve to pass to this FM.
    I am sure this is ur problem.
    Thanks
    Mahesh

  • Regarding the function module Number_Get_Next

    Hi All,
          We have created one custom transaction. We need to generate one number when we save. The number will be generated using the function module NUMBER_GET_NEXT. How can i capture the number which will be generated.
    When we create Sales Order, the sales order number gets generated and that number will go to the DB Table right.
    Similarly i need to save the number in one custom table which gets generated for my transaction.
    Thanks,
    Ibrahim

    Hi
    The code should be like this:
    IF RANGE_OPEN IS INITIAL.
          CALL FUNCTION 'NUMBER_GET_INFO'
               EXPORTING
                    NR_RANGE_NR        = <Nr range>
                    OBJECT             = <Object range>
               EXCEPTIONS
                    INTERVAL_NOT_FOUND = 1
                    OBJECT_NOT_FOUND   = 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.
          RANGE_OPEN = 'X'.
        ENDIF.
        CHECK RANGE_OPEN = 'X'..
        CALL FUNCTION 'NUMBER_GET_NEXT'
             EXPORTING
                  NR_RANGE_NR             = <Nr range>
                  OBJECT                  = <Object range>
             IMPORTING
                  NUMBER                  = _NUMBER
             EXCEPTIONS
                  INTERVAL_NOT_FOUND      = 1
                  NUMBER_RANGE_NOT_INTERN = 2
                  OBJECT_NOT_FOUND        = 3
                  QUANTITY_IS_0           = 4
                  QUANTITY_IS_NOT_1       = 5
                  INTERVAL_OVERFLOW       = 6
                  BUFFER_OVERFLOW         = 7
                  OTHERS                  = 8.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    But I don't understand if you need an your own number or the number used for the sales order.
    Max

  • Regarding the function modules

    Hi anybody pls tell me
    what are the scenarios for the creation of function module
    can you give me the some examples
    thanks in advance

    <b>Function Modules</b>
    Function modules are procedures that are defined in function groups (special ABAP programs with type F) and can be called from any ABAP program. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the  Function Builder.
    Function modules allow you to encapsulate and reuse global functions in the R/3 System. They are stored in a central library. The R/3 System contains a wide range of predefined function modules that you can call from any ABAP program. Function modules also play an important role in database updates and in remote communications between R/3 Systems or between an R/3 System and a non-SAP system.
    Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the  Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the  Function Builder.
    The  Function Builder also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed

  • Regarding the function module 'REUSE_ALV_GRID_DISPLAY'

    wat do these things do in 'REUSE_ALV_GRID_DISPLAY' function module and how to use them??
           IS_VARIANT                        =
          IT_EVENTS                         =
          IT_EVENT_EXIT                     =
          IS_PRINT                          =
          IS_REPREP_ID                      =
          I_SCREEN_START_COLUMN             = 0
          I_SCREEN_START_LINE               = 0
          I_SCREEN_END_COLUMN               = 0
          I_SCREEN_END_LINE                 = 0
          I_HTML_HEIGHT_TOP                 = 0

    Hi
    See the function module Documentation,
    Passing an EXIT routine indicates to the ALV that the application wants to respond to certain function codes.
    Generally, these are function codes that are unknown to the ALV (that is, are not standard ALV functions) and that were defined and set by a user status.
    See also the documentation on parameter I_CALLBACK_PF_STATUS_SET.
    The interface of the form routine specified must be defined as follows:
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
    Parameter R_UCOMM contains the function code triggered.
    Structure RS_SELFIELD contains the following information:
    tabname : Name of the internal output table
    tabindex : Index of the internal output table
    fieldname: Field name
    endsum : Cursor is located on the totals line
    sumindex : If >0, the cursor is located on a subtotals line
    value : Value of the field on the list
    refresh : (Exporting) List should be set up again
    col_stable:(Exporting) Keep column position when list is set up again
    row_stable:(Exporting) Keep row position when list is set up again
    exit :(Exporting) Exit list (and ALV)
    before_action: Call before standard action execution
    after_action : Call after standard action execution, before list setup
    ignore_multi : Internal use
    sel_tab_field: Internal use
    The EXIT routine is called whenever a function unknown to the ALV is triggered or if the routine call before/after the execution of a standard function code has been defined by interface parameter IT_EVENT_EXIT.
    See also the documentation on parameter IT_EVENT_EXIT.
    The function code and the current cursor position are then passed on to the calling program through the EXIT routine.
    If the user has selected multiple rows by selecting checkboxes, the output table field designated as the checkbox contains the current state of the checkbox in the list.
    Top_Of_page :
    If the caller specifies an EXIT routine, this routine must have the following form:
    FORM top_of_page.
    Module REUSE_ALV_COMMENTARY_WRITE can then be called within the EXIT routine. This module is responsible for formatting the header information and also ensures online HTML formatting. In the print preview or in batch mode, the text passed is then output in the normal format.
    If module REUSE_ALV_COMMENTARY_WRITE cannot be used, you must use two parameters instead. In I_CALLBACK_TOP_OF_PAGE you pass the form routine that is responsible for normal formatting in batch mode or in the print preview mode. The form routine that is responsible for online formatting, is passed in parameter I_CALLBACK_HTML_TOP_OF_PAGE. If one of these parameters is not filled, top-of-page is not output in the respective mode.
    The important parameters are :
    I. Export :
    i. I_callback_program : report id
    ii. I_callback_pf_status_set : routine where a user can set his own pf status or change the functionality of the existing pf status
    iii. I_callback_user_command : routine where the function codes are handled
    iv. I_structure name : name of the dictionary table
    v. Is_layout : structure to set the layout of the report
    vi. It_fieldcat : internal table with the list of all fields and their attributes which are to be printed (this table can be populated automatically by the function module REUSE_ALV_FIELDCATALOG_MERGE
    vii. It_events : internal table with a list of all possible events of ALV and their corresponding form names.
    II. Tables :
    i. t_outtab : internal table with the data to be output
    <b>REward if usefull</b>

  • Regarding the functional modules

    hi,
    there are three types of function modules are there.
    1)normal functional modules
    2)remote functional modules
    3)update functional modules
    what is the update functional modules?
    please provide me the information regarding this functiional modules

    Hi,
    go through following ,material:
    http://sapmaterial.com/RFCmaterial.html
    http://sapmaterial.com/bapi.html
    Reward points if helpful
    Srikanta Gope

  • Please help with some function module

    Dear All,
    We are trying to get data for excise duties based eg. BED, ECS, SECESS in the PO printout. Can anyone please suggest any function module through which excise duty can be calculated. For condition types other than ED we are using function module CALCULATE_TAX_ITEM. Please help.
    Thanks and regards,
    Atanu

    Dear All,
    We are trying to get data for excise duties based eg. BED, ECS, SECESS in the PO printout. Can anyone please suggest any function module through which excise duty can be calculated. For condition types other than ED we are using function module CALCULATE_TAX_ITEM. Please help.
    Thanks and regards,
    Atanu

  • Need help for the Function Module 'PFL_GET_PARAMETER_INFO'

    Hi Experts,
    The FM 'PFL_GET_PARAMETER_INFO'  returns the value for Profile Parameters for a system .
    The inputs required for this FM are :
      1.   Parameter name  : ( eg . login/min_password_lng etc. )                   
      2 . Parameter Type
    I am not sure about what the value of Parameter Type should be .
    Its a mandatory field.
    I have tried to search but could not find anything.
    Can you please help me on this?
    Thanks in Advance,
    Harshit Rungta
    Edited by: harshit rungta on May 27, 2011 8:15 AM

    What exactly is the use-case for this?
    Many developers "c-call" the params and neglect this feature of the type - also whether it is static or dynamic. Some params are even dynamic as system profiles in one direction but static as instance parameters in the other direction when changing the value.
    As you cannot create your own system profile parameters, I do not see the use-case for why you are wanting to check it in advance, because the application APIs should do this.
    What you are possibly looking for is function module SUSR_GENERATE_PASSWORD in this case. It will respect "the rules" in the params.
    Do not use the legacy function RSEC_GENERATE_PASSWORD directly.
    Cheers,
    Julius

Maybe you are looking for

  • How do I delete a season pass of one of my shows on I-tunes

    I have a season pass of BSG and i don't want it anymore How do i delete it?

  • Itunes 9.1 update for Windows Vista (x64) won't run, why???

    I have been running itunes for several years and have had no problems. I updated today to the latest version (9.1). The update seemed to go fine. However, when I try and run itunes the computer whirrs and flashes as if the software is starting but no

  • Syncing to apple tv

    I have been on a site called hulu where you can watch tv for free on your computer Is there any way that i can stream these programmes to my computer and then to my apple tv Thanx for the help to anyone out there who can help me

  • 10.6.8 Upgrade

    I recently upgraded my MacBook 10.5.8 to 10.6.8. But in the process I lost iworks and ilife. When I tried to purchase them it noted that I needed 10.9 for the current version. Sooo......can I upgrade this 6 year old MacBook to 10.9 or is it possible

  • Print to video vs. edit to tape

    what is the preferred format? i've been using print to video but i hear edit to tape is a lot better. did a search but not much came up. any comments?