Call functions in ABAP : CALL 'ThSysInfo'

hi
i am in need of certain information abt the blow code\
i just wanted to knw where the value HWID gets populated from after executing the below code
can any body help plzzz
CALL 'ThSysInfo'
     ID 'OPCODE'   FIELD OPCODE_MSGSERVER
     ID 'MSOPCODE' FIELD MS_GET_HWID
     ID 'HW_ID'    FIELD HWID
     ID 'ERRMSG'   FIELD ERRMSG.
just want to how the value HWID gets populated in this script
kindly help
its Urgent
<b><REMOVED BY MODERATOR></b>
regards
shoeb
Message was edited by:
        Alvaro Tejada Galindo

pllz help me what is the solution for these
ThSysInfo - How to change the parameters???
CALL 'ThSysInfo'
      ID 'OPCODE'        FIELD OPCODE_GET_VIRT_HOSTDATA
      ID 'PROTOCOL'      FIELD PROTOCOL
      ID 'VIRT_IDX'      FIELD VIRT_IDX
      ID 'HOST'          FIELD HOSTNAME
      ID 'PORT'          FIELD PORT.
i want to change the hostname as by default through system it is taking some hostname but i want to change that hostname can u plzz guide me how to change that hostname as i am using these FM in my webdynpro method
pllzz hel me as soon as

Similar Messages

  • Approximate operator and recursive call function in abap

    Dear expert,
    Please give me an example about Approximate operator and recursive call function in abap
    thanks so much

    Hi
    About Approximate operator, you can go to tcode 'ABAPDOCU', searching CO,CN,CA etc...each of them have example there.
    And recursive function,
    Say here is a FM,
    FUNCTION recursive_get_number.
    *import im_num type i.
    *export ex_num type i.
    ex_num = im_num + 1.
    IF ex_num GE 100.
       EXIT.
    ELSE.
       CALL FUNCTION recursive_get_number
            EXPORTING
               im_num = ex_num
            IMPORTING
               ex_num = ex_num.
    ENDIF.
    ENDFUNCTION.
    When you call this function from outside with importing parameter '1',  then will return you 100.
    regards,
    Archer.

  • IP - Is it possible to call exit planning function from ABAP Report..

    Hi All,
    Greetings.
    Is it possible to call exit planning function from ABAP Report (t-code SE38) ? Or I mean is not limited only to be called from ABAP Report, perhaps from BSP / Web-Dynpro / Function Module.
    If somebody here has been doing it before, I'm keen to ask to kindly share it. Particularly how to call and transfer data to that exit function.
    Or if somebody has done in BPS, appreciate if it can be shared too .
    Thanks a lot and have a good day,
    Best regards,
    Daniel N.

    Hi.
    You can achive this as suggested by Mattias in your previous post.
    Lets say you have next data structure:
    CostCenter | Amount | PercentForDistibution |
    Create input ready query in this format. Restrict cost center by variable type range.
    Create WAD with analysis item.
    When you run web page you enter range of cost centers (lets say you will enter 101004 to 101010).
    I assume you have data only for 101004 in your cube (lets say 1000).
    You will see only one record in your webpage.
    CostCenter | Amount | PercentForDistibution |
    101004       | 1000     | NOTHING
    When you create WAD in analysis item properties set "NUMBER_OF_NEW_LINES" to lets say 1 (so in WAD you will see always one blank line for entering new data).
    Just add 6 new records:
    CostCenter | Amount   | PercentForDistibution |
    101005       | NOTHING| 10
    101006       | NOTHING| 30
    101007       | NOTHING| 20
    101008       | NOTHING| 25
    101009       | NOTHING| 5
    101010       | NOTHING| 10
    Then run planning FOX function like this:
    FOREACH Z_COST_CENTER.
    IF {Amount, Z_COST_CENTER} <> 0
    Z_AMNT_TO_DISTRIBUTE = {Amount, Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    FOREACH Z_COST_CENTER.
    IF {PercentForDistibution Z_COST_CENTER} <> 0.
    {Amount, Z_COST_CENTER} = Z_AMNT_TO_DISTRIBUTE * {PercentForDistibution Z_COST_CENTER}.
    ENDIF.
    ENDFOR.
    It is not perfect FOX, but as an idead, it should work.
    Regards.

  • JCo Outbound( calling Java Function from ABAP )

    HI,
    I want to call a JAVA function from ABAP.I have installed the JCo toolkit and included the sapjco.jar file in the classpath of my system.
    When i execute the program(Example5.java,provided with sapjco.zip) from the command prompt,it is working fine,the server listens to the calls made from ABAP via RFC destination.
    But if i copy the same program in NWDS in a JAVA project,to run it from there as JAVA application,after including the sapjco.jar file in the project JAVA build path,i get the following error,marked by a red cross ,at the head of the program,even before i run it.
    <b>This compilation unit indirectly references the missing type com.sap.jdsr.writer.DsrIPassport (typically some required class file is referencing a type outside the classpath)</b>
    What changes do i need to make,to run it from NWDS?
    I tried to include the sapjcorfc.dll file along with the sapjco.jar in the java build path,but it doesn't help.
    Please tell how to solve this issue?
    Regards,
    Siddhartha

    hello sid,
    which jco version are you using?
    are you using the same jco lib when running in command
    line and in nwds?
    if you are, try checking the order of the your classpath.
    your jco lib (which you are using in command line) should
    come first in order prior to the default libraries in your project.
    regards
    jo

  • Call a Java Function From Abap

    Hi, I need to call a java function from ABAP,  I have a WAS 640 to deploy the module.
    I have found this tutorial...
    [ABAP calls Java via RFC|/people/thorsten.franz3/blog/2008/11/21/abap-calls-java-via-rfc-1-introduction]
    The problem is that it uses a newer version of WAS and it implements EJB 3.0 wich only works on Java 5, but my WAS has java 1.4.2.
    Anyone knows how to adapt this Blog to a WAS 640 version ?
    Or Perhaps there is another way of doing this, maybe publishing my function as a web service.
    Regards.
    Mariano.

    Why don't you expose your Java functionality as a Web Service and consume it in ABAP program. That should be much easier and the web service can be used in other places as well.
    Best regards,
    Ritesh Chopra

  • Need a File Parameter with Browse Functionality in ABAP

    Hi
    I Need a File Parameter with Browse Functionality in ABAP.
    Can anyone help me with logic.
    Regards,
    Sree

    Check below code:
    PARAMETERS: p_file TYPE localfile.
    DATA: l_path TYPE string,
          l_fpath TYPE string,
          l_fname TYPE string.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_save_dialog
        EXPORTING
          window_title         = 'Save to...'
          default_extension    = '.txt'
          initial_directory    = 'C:\'
        CHANGING
          filename             = l_fname
          path                 = l_path
          fullpath             = l_fpath
        EXCEPTIONS
          cntl_error           = 1
          error_no_gui         = 2
          not_supported_by_gui = 3
          OTHERS               = 4.
      IF sy-subrc EQ 0.
        MOVE l_fpath TO p_file.
      ENDIF.

  • How to use RTRIM function in ABAP

    Hey,
    I have a question on using trim function in ABAP. According to all documents, I should be able to use rtrim as
    shorttext = rtrim('abcde-xx', '-xx').
    But when I do that, it gives me an error message "Comma without preceding colon (after shorttest?)"
    Anyone can tell me why is this happening? how should I use this trim function? And for me to cut off variable's last few character, what else method can I use? 
    Thank you very much.

    DATA : T1    TYPE STRING VALUE 'abcde-xx',
                T2    TYPE STRING  VALUE '-xx'.
    REPLACE T2 INTO T1 WITH SPACE.
    WRITE :/, T1.
    result output is :    'abcde'.
    regards
    Guna

  • C Function in ABAP

    Hi,
    Is there a way to debug a C function in ABAP.
    How can I view it's source code from the system ?
    BR,
    Rotem.

    Hi,
    These functions are for internal use by SAP - therefore there is no
    documentation.
    It is not recommended that they are used (unless absolutely no other
    option exists) since SAP don't support them for customer use.
    Regards
    Hiren K.Chitalia

  • GoalSeek Function in ABAP

    Hi,...
    Is there any function in ABAP similar to GoalSeek function in Excel?
    thanks

    well, Actually I have a math calculation say:
    net + tax = gross (this is for example only, the real one should be more complex than this)
    with this formula I can have gross value ... but what if I have gross value ... how is the net if I have tax?
    with excel GoalSeek function, I easyly can do that....
    I wonder is there any similar function or command or whatever in abap/sap? or I can only do that by creating 2 sub procedures, one for net + tax = gross, second for gross - tax = net?
    thanks

  • Functional and ABAP specs

    Can someone please let me know the diffrence between functional and ABAP specifications and what exactly we doing while writing these kinds of specs.
    What are the kind of specifications does a functional person and what is that a ABAP person do?
    Can a functional person write ABAP specifications?

    Hi Saleema,
    Functional Specifications are prepared by functional consultant basically if the standard sap is not suited for the clients business process.
    Then on the basis of the functional specifications the ABAPER will develop the logic by user exit or bapi etc.
    So, a ABAPER can prepare a technical specification only on the basis of the functional specification.
    Generally in the functional specification u will write the current process happening and expected process, how the program has to work and what will be the output will be specified.
    I hope u understood.
    regards
    srikanth.

  • Call function in abap routine of infopackage

    Experts,
    Good day. I have a problem concerning the data to be imported in my ods.I can't find a similar thread corcerning my problem. My ‘File date’ field should contain only 2 years and 3months data of recent data. I'm using a call function fima_date_create to filter values of zfile_date.
    CALL FUNCTION 'FIMA_DATE_CREATE'
      EXPORTING
        I_DATE                             = sy-datum
        I_FLG_END_OF_MONTH   = ' '
        I_YEARS                          = 2-
        I_MONTHS                        = 3-
        I_DAYS                             = 0
        I_CALENDAR_DAYS          = 0
        I_SET_LAST_DAY_OF_MONTH       = ' '
      IMPORTING
        E_DATE                             =
        E_FLG_END_OF_MONTH   =
        E_DAYS_OF_I_DATE         =   
    The sy-datum becomes the “High” value and the date generated by this FM will be the “low” value. I already tested this function module and it is what i want. How Should I write the ABAP code for this in the abap routine for my infopackage? Or what steps do I need to take.

    Hi,
    When you choose the option to write a routine for one of the characteristics in the infopackage selections, you get a window to write your code with some prewritten code as below. Modify it as shown below, for your requirement.
    data: l_idx like sy-tabix.
    read table l_t_range with key
         fieldname = 'CALDAY'.
    l_idx = sy-tabix.
    START of YOUR CODE
    <----
    Required logic -
    >
    L_T_RANGE-LOW  = <lower limit of range>.
    L_T_RANGE-HIGH = <upper limit of range>.
         L_T_RANGE-SIGN = 'I'.
         L_T_RANGE-OPTION = 'BT'.
    END of YOUR CODE
    modify l_t_range index l_idx.
    p_subrc = 0.
    Hope this helps.

  • Call PL/SQL Function in ABAP over XI

    Hi all,
    is it possible to call a PL/SQL function in a BW-ABAP over XI and to get back the return value of the function. What proxy do i need and how should the coding look like if it is possible.
    I am thankful for every little help.
    Peter

    You can do a client proxy to JDBC scnario in XI. If you have a stored procedure on the Database side you can call it using SQL XML message type.
    Search for the JDBC receiver adapter documentation on help.sap.com
    VJ

  • Calling IP function in ABAP report

    Hi guys,
    I would like to execute a planning function of BIIP from an ABAP report. Which function module has to be used or is there a different approach? For the old BPS planning function there was the API_SEM_BPS....
    Regards
    Stefan

    Hi Stefan,
    I think there is no way to call a planning function of IP in a report. But we can call planning sequences using the program
    RSPLS_PLSEQ_EXECUTE.
    In your case, you can create a planning sequence which contains the planning function and filter, and in your ABAP report, call the program RSPLS_PLSEQ_EXECUTE using the statement SUBMIT.
    Also, you can use the statement SUBMIT VIA SELECTION-SCREEN which will prompt you to give the Planning Sequence name at run-time of the execution of the ABAP report.
    Hope this helps.
    Please revert if unresolved.
    Regards,
    Srinivas Kamireddy.

  • Call to function from ABAP WebDynpro.

    Hello,
    I am trying to call  function module from WD ABAP. the function is calling to a sap transaction (IW22) with parameter.
    My code is:
    CALL FUNCTION 'ZPM_TEST'
    EXPORTING
       IQM           = '1000000531'
    The function ZPM_TEST is using '1000000531' as a parameter to the transaction.
    But when I  am executing my application  i am getting the following error:
    "Screen output without connection to user"
    Thanks.
    Regards,
    Shimon.

    You can not call a transaction from Web Dynpro.  Anything that invokes the SAPGUI can't work from within Web Dynpro.  Consider instead building a URL to the SAPGUI for HTML or if you are in the Portal or NWBC performing such navigation using the Object Based Navigation Portal APIs.

  • Help regarding calling BRFPLUS function through ABAP code

    Hi,
          I have  a situation where I have to input  data into a BRFPLUS function  as a table (i.e the data is input as select options where list or range of data can be provided).The corresponding output is also in the form a table .I've created this function in BRFPLUS and is working fine .Now I have to call it through ABAP code.Can someone kindly  provide me with the probable code for this scenario.
    E.g:
            ZT_MATNR  is the table in brfplus representing the list of MATNR values input along with other such inputs to function module Z_FM
            ZT_ATM   is the  resultant output table  of the function  which contains several fields.
    Now I have to call this BRFPLUS function with help of ABAP code.Could someone kindly help.

    Hello ,
    There should be a number of BRF+ tutorials available in SCN which discuss the FDT APIs. You can have a look at them to get an idea of the various APIs available and their uses.
    For your usecase, you should do the following.
            lo_fdt_function         TYPE REF TO if_fdt_function,
            lo_fdt_result           TYPE REF TO if_fdt_result,
    * Get function handle
          CALL METHOD lo_fdt_factory->get_function
            EXPORTING
              iv_id       = lv_function_id
            RECEIVING
              ro_function = lo_fdt_function.
    where lv_function_id is the GUID of the BRF+ function . You can either make it a constant , or you can use a FDT API to get the function GUID from the BRF+ application name and function name.
    *   Set function context
        TRY.
            CALL METHOD lo_fdt_context->set_value
              EXPORTING
                iv_id    =
                ia_value =
    This is one way to set the input context ( pass the input to the BRF+ function to process ). There are other ways to do this as well. Which one you use would depend on the kind of input you want to pass.
    * Execute BRFPLUS function
      TRY.
          CALL METHOD lo_fdt_function->process
            EXPORTING
              io_context = lo_fdt_context
            IMPORTING
              eo_result  = lo_fdt_result.
    * Get result output
      TRY.
          CALL METHOD lo_fdt_result->get_value
            IMPORTING
              ea_value =
    Another direct way of doing it would be to use the method PROCESS of the class CL_FDT_FUNCTION_PROCESS.
    I have not gone into much explaination here , but it should provide you an idea of how you can go about it.Read the SCN docs on the APIs to get a better idea , or better still if you can get hold of a copy of the BRF+ book by Carsten Ziegler , you will get an end to end explaination of all BRF+ APIs in it.
    Regards,
    Indranil.

Maybe you are looking for

  • Can't Consolidate Referenced Files

    When I turn on iCloud Photo Sharing, Photos tells me that referenced files can't be uploaded and that I should consolidate them. I created a smart folder to identify the referenced files but when I try to consolidate, Photos says it can't find the fi

  • Losing changes in LabVIEW 8--bug report

    Don't know if this has been reported yet or not but it was driving me crazy making my coding changes evaporate until I started realizing it wasn't me. To reproduce: Create a blank project and a new VI Add FP.Open VI Property node with a False Constan

  • Snow Leopard for iMac

    I need Snow Leopard (not Lion) as Rosetta is necessary. I have a ropey iMac with S.Leopard and installation discs. Can I get a new iMac with 10.7. Completely wipe the HD and install 10.6x? If not why not, and is there any way I can get what I need? T

  • Serialization of file data

    Hi I'm sure the answer to this is simple, but I really can't think of how do it: I have a class, SavedObject, which, at the moment, contains two variables, model and script. These two variables are Strings, pointing to a relative file. I serialize th

  • How do I delete the "recent" picture icons when choosing a user icon?

    There is a category of icons labeled as "recent" when choosing a user profile icon.  This also shows up in Messages as well when choosing an icon.  I am able to highlight the icon, but when I press the delete key nothing happens.  Are these icons sto