How to specify a variable in the path prefix of an External HTTP (RFC) connection (in transaction SM59)

Hi There,
Please can someone tell me how to specify a variable in the  path prefix of an External HTTP (RFC) connection in transaction SM59?
For example if my path prefix is /invoke/test/example?input=XYZ; how do I replace "XYZ" with a variable so that I can pass in any value after "=" ?
Thanks,
Brendon

Hi,
This is SAP Business one system administration forum. Please find correct forum and repost above discussion to get quick assistance.
Please close this thread here with helpful answer.
Thanks & Regards,
Nagarajan

Similar Messages

  • How to specify a variable in the script logic

    I want to pass a variable from the process chain using the prompt statement.
    I  want to refer to the variable name in the script. When I used the following statement in the script file, I got an error when validating the statement below:
    //Increase Wage and Salary & Personnel Exp. by entered percentage
    [P_ACCT].[#CE0004020] = [P_ACCT].[CE0004020] * ( 1 + $WS_PERCT$ / 100)
    Syntax error:Reference Error: $WS_PERCT$  is not defined
    One of the how-to guides indicated that I should use the dollar sign before and after the variable name.
    Can someone explain how to specify a variable name in the script.
    Thanks.

    Thanks, Pravin.
    I tried using the syntax with the # sign (as shown below) but when I validate the code I get an error. The message indicates there is an issue with $WS_PERCT$.
    Syntax error:Reference Error: $WS_PERCT$ is not defined
    P_ACCT].[#CE0004020] = [P_ACCT].[CE0004020] * ( 1 + $WS_PERCT$ / 100)
    Can you please advise if am missing something here in the code.
    Edited by: Sanjay Kumar on Sep 24, 2009 10:06 PM
    Edited by: Sanjay Kumar on Sep 24, 2009 10:08 PM

  • How to build the "Path Prefix" HTTP Adapter at run time

    Hi All,
    I have a scenario wherein I have to call the HTTP Url of a thiird party system from R/3 via PI.
    The third party url looks liike this:
    http://gis/ias/cgi-bin/siscgi.exe?request=batch&command=<requests><request><name>sis_neighbouring_knos_for_sambandh_service</name><buffer>20</buffer><same_premise_kno>123</same_premise_kno><l
    eft_kno>331</left_kno><gis_id>4019589</gis_id><priority>same_premise_kno,left_kno,right_kno,gis_id</priority></request></requests>&user_name=sambandh.sias&pa
    ssword=sambandhsias
    I have successfully created a HTTP Recevier comm channel and provided the following in the "Path Prefix"
    /ias/cgi-bin/siscgi.exe?request=batch&command=<requests><request><name>sis_neighbouring_knos_for_sambandh_service</name><buffer>20</buffer><same_premise_kno>123</same_premise_kno><l
    eft_kno>331</left_kno><gis_id>4019589</gis_id><priority>same_premise_kno,left_kno,right_kno,gis_id</priority></request></requests>&user_name=sambandh.sias&pa
    ssword=sambandhsias
    But If I need to pass the values inside the xml tags specified above e.g. "name" at run time, How do I do that?
    I have explored the "Apply URL Parameters" option in the HTTP Comm channel but it has fixed names for the HTTP URL parameter.
    Please let me know how is this possible hopefully without a UDF
    thanks,
    Piyush

    Hi Piyush,
    Have you checked the option of ASMA of the adapter?
    http://help.sap.com/saphelp_nw04/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    Also see Note 1101338 - Dynamic configuration of HTTP adapter
    Regards
    Suraj

  • How to use bind variables in the following query

    CREATE OR REPLACE PROCEDURE MMDB.test IS
    sel_qtn VARCHAR2 (10);
    CURSOR PT_QUANTITY IS select * from mmdb.product_tree WHERE QUANTITY_CHECK ='E'
    AND run_id = 100
    a PT_QUANTITY%ROWTYPE;
    BEGIN
    FOR i IN PT_QUANTITY
    loop
    sel_qtn := i.quanttity-1;
    While sel_qtn>=1
    loop
    insert into mmdb.product_tree (BILLING_ACCOUNT_NO ,S_CODE) values (i.BILLING_ACCOUNT_NO ,i.S_CODE||'E');
    sel_qtn :=sel_qtn -1;
    End loop;
    commit;
    end;

    Don't duplicate threads: How to use bind variables in the following query

  • How to specify multiple listeners in the init/spfile

    hi experts,
    can u explain me How to specify multiple listeners in the init/spfile ?

    you do not specify linsteners in spfile.
    The easiest way to configure more listeners is to use Net Configuration Assistant tool.

  • How can I do to install the path fix

    How can I do to install the path fix in BerkeleyDB 4.5.20?
    I'm using Windows with BerkeleyDB MSI instalation.

    It doesn't look like the patch applies cleanly ?
    cd /Users/vajda/osaf/osaf/external/db/db-4.5.20; patch -Np0 < ../patch.4.5.20.1; echo ok
    (Stripping trailing CRs from patch.)
    patching file sequence/sequence.c
    Hunk #1 FAILED at 228.
    Hunk #2 succeeded at 368 with fuzz 2.
    Hunk #3 FAILED at 768.
    2 out of 3 hunks FAILED -- saving rejects to file sequence/sequence.c.rej
    ok
    cd /Users/vajda/osaf/osaf/external/db/db-4.5.20; patch -Np0 < ../patch.4.5.20.2; echo ok
    patching file rep/rep_method.c
    Hunk #1 succeeded at 526 (offset 2 lines).
    Hunk #2 succeeded at 555 (offset 2 lines).
    patching file rep/rep_record.c
    Hunk #1 succeeded at 163 (offset 2 lines).
    Hunk #2 succeeded at 629 (offset 2 lines).
    ok
    I'm applying it to a source tree from a db-4.5.20.tar.gz archive dated October 5th, 2006.
    (yes, this is before I apply any of my own patches)
    Andi..

  • HTTP destination type G with scpecial characters in the path prefix

    Hi guys,
    I am having an issue with a RFC destination type G in a ECC 5, the HTTP service that I am trying to use is asking me for an authentication that needs to be embeded on the Path prefix, the user has an "@" and the pwd also contain a special character "!". So the complete uri that I want to access is in the form of https://server:443/path?user=MyUser&#64;MyDomain.com&password=MyPwd! when I tried in my web browser I got authenticated but when I put the information in the RFC destination in the form described below I am not able to authenticate and I am getting an error of Unauthorized.
    Target Host: server
    Service: 443
    Path prfix: /path?user=MyUser&#64;MyDomain.com&password=MyPwd!
    Logon procedure: No logon
    SSL: Active
    I also have tried with the basic authentication but I am still not able to authenticate.
    I think the issue is the "@" in the user: MyUser&#64;MyDomain.com , I also have tried replacing the "@" for "%40" and still not working.
    Do you know how I can pass this special character?
    Do you think it can be something else that it doesn't let me authenticate to the server?
    My system is a non unicode ECC 5, SAP_Basis 640
    Thanks
    Omar Hernandez

    Hi Mark,
    Thanks for your response, the HTTP service that I am trying to access is not accepting a basic authentication but it is getting the authentication info from the parameters in the URL. Anyway I also have tried to use basic authentication but it is not working.
    Regarding SMICM, I havent seem anything useful, maybe the just the "BINDUMP of content denied" string but I am not sure what does this mean.
    [Thr 1076382016] IcmHandleNetRead(id=91/11638): pending SSL data: 0, rollout=0
    [Thr 1076382016] <<- SapSSLReadPending(sssl_hdl=0x2aaaaf53f380)==SAP_O_K
    [Thr 1076382016]     out: pendlen = 0
    [Thr 1076382016] NiIPeek: peek successful for hdl 79 / socket 46 (r)
    [Thr 1076382016] <<- SapSSLRead(sssl_hdl=0x2aaaaf53f380)==SAP_O_K
    [Thr 1076382016]          result = "max=65312, received=88"
    [Thr 1076382016] IcmReadFromConn(id=91/11638): read 259 bytes(timeout 250)
    [Thr 1076382016] BINDUMP of content denied
    [Thr 1076382016] PlugInHandleNetData: role: 2, status: 2, content-length: 0/88
    ##buf_len: 259, buf_offset: 171, buf_status: 0, conn reused
    [Thr 1076382016] PlugInHandleNetData: read response body (len=88/88)
    [Thr 1076382016] PlugInHandleNetData: response completely read(EOS=0)
    [Thr 1076382016] IcmFlushBuf: Flushing 259 Bytes, buf_status: 6
    [Thr 1076382016] flush buffer with mpi buffer id 10
    [Thr 1076382016] MPI<1e8c9>1a#5 FlushOutbuf l10 1 1 1c14e8 311 6 -> 0x2b4bc7cd64e8 0
    [Thr 1076382016] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 1076382016] PlugInHandleNetData: keep connection
    [Thr 1076382016] IcmPlCheckRetVal: Next status: WRITE_REQUEST(3)
    [Thr 1076382016] IcmHandleNetRead(id=91/11638): read_len: 88, HandleNetData returned: 3
    [Thr 1076382016] IcmConnRollInWP: no need to roll in WP status: ROLLED IN
    [Thr 1076382016] IcmWorkerThread: Thread 4: Waiting for event

  • How do I get rid of the +1 prefix in sms text on incoming text

    how do i get rid of the +1 prefix on incoming text messages so that senders name can appear from my address book

    Have the person who is sending the text contact their carrier and see if it can be removed.

  • ODI - to declare the variable for the path in Modules & Interface

    Hi,
    I have different server names like Development, Test & Production. I have installed ODI client in my local machine.
    1. For creating *10 modules*, i have the flat files in Development server. For now i can hard code the path by \\Development\ODI_FileStore....
    2. In the Interface i am using the hard coded paths for the logs.
    Is there any possibility to create a variable for the shared folder and use that variable (like environment variables ...) instaed of using the hardcoded path. If so, can you explain tme how i can create.
    Your advise will help me a lot and will be appreciated.
    Thanks & Regards
    Dhamu

    Dhamu,
    I think when you say modules, you mean models.
    To use multiple files in the same interface, you can use ODI variables.
    Read this link for more information : http://odiexperts.com/multiple-files-single-interface

  • How doi print Any variable at the end of page in ALV report?

    Hi,
    Anyone can tell me that How do i print Any variable at the end of page in ALV report?
    Exmale: at the ende of alv report i want to print total no of employee who has taken house loan or education loan.

    Hi,
    Go through these links
    Thread in sdn regarding FOOTER IN ALV
    [ALV  FOOTER;
    Wiki in sdn regarding HEADER AND FOOTER IN ALV
    [https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP%20Objects%20-%20ALV%20Model%20-%20Using%20Header%20and%20Footer]
    Header and Footer in ALV
    [http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm]
    Hope this helps.
    Thank you,
    Pavan.

  • How  can use a variable in the folowing code?

    How  can use a variable 'W_ROWNUM2' in the folowing code?
    MOVE '1' TO CNT.
    LOOP AT L_T_PM2.
                  CONCATENATE '0' CNT INTO W_ROWNUM2.CONDENSE W_ROWNUM2.
                   CONCATENATE 'F110V-VARI'W_ROWNUM2'(01)' INTO FLD2.
        perform  DYNPRO_FIELD       using FLD2
                                     L_T_PM2-vari12_con.
                   CNT = CNT + 1.
                   CONDENSE CNT.                                                              
    ENDLOOP.
    I need to increment the value of W_ROWNUM2.
    Please ,it is urgent!!

    Hello
    CONCATENATE 'F110V-VARI'W_ROWNUM2'(01)' INTO FLD2.
    Try using spaces between parts of the resulting string.
    CONCATENATE 'F110V-VARI'  W_ROWNUM2  '(01)'   INTO FLD2
    Regards
    Greg Kern.

  • How to display a variable in the report?

    hi all
    i want to use one complex sql statement which will return only one value and i need to display it in report. i'm new to OBIEE. i thought of creating a repository variable to hold that value. but im not sure of how to display the variable in the report.
    Any idea?
    Your help is appreciated

    Hi where do you want to show that value in answers i mean in which part of answers, you want to show that?
    see this
    http://bischool.wordpress.com/2009/05/05/presentation-variable-values-in-report-titles-or-using-presentation-variable-in-dashboard-text-object-and-narrative-view-directly/
    also see this to where and how to use variables in answers
    http://shivabizint.wordpress.com/2008/10/02/oracle-bi-ee-variables-overview/

  • How to create selection variables on the KF

    Hi,
        i need to create a variable on the CKF and the user is going to give the selections like >90% or <100%  in the variable screen before runing the report.on the report should show the values based on the selection.
    1.how to create the variables on the CKF.
    2. how to restrict the values and give the selections(like >90%,<100%) values in the selections.

    Hi Venkat,
    You can achieve this by the following way:
    1. Create a CKF or a local formula(based on which queries it needs to be used)
    2. Then go to BEX Query Designer -> View -> Conditions
    3. Create New Condition -> select 'New' -> Select your CKF/Local Formula -> Define your Operator ( BT, GT, LT, Top % etc.) -> Create a Formula variable (Ready for input with Processing type as ;manual Input')
    4. DO the char. assignement for the condition with your condition definition
    4. Execute the report with your values.
    This will solve your prob.
    Cheers,
    VA

  • How to change Global variable in the query

    Hi,
    I have 6 reports which is using 0PDT as a global variable and has single option as a property. Now I want to change this property and have multiple selection but I am not able to change its property.
    I am able to see all the filter variables from the query property and from there I am getting edit option to change but the "single selection" option is grey/disable which is preventing me to make change in this variable. Is there any way that I delete this variable and create a local variable which has date range option.
    This is affecting all my reports and all the report needs date ranges instead of single select option.
    Thanks,
    Shivani

    Shivani,
        You can change the restrictions with new variable(right click on required infoobject and choose restrict -->> choose variables -->> move existing variable from right to left and move  new variable. Then you can see only one variable.
    You can not delete any variable if is using in some queries.
    how to restrict:
    Srini<a href="http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm">Restricting Characteristics</a>

  • How to assign sessionscope variable to the bind variable in Query of VO

    Hi all,
    I want to know how to assign a sessionscope variable in the binvariable of Query in VO
    My sessionscope variable holds the value of currently selected column in the table. eg:empname of the currently selected column which is in empdetails table...
    I want display the schemes available for the selected employee in the next table..The schemes are in another table named empschemes which has the empname and empschemes as column
    I have created a vo for empschemes table with bind variable 'scheme_bind'..I need to set the sessionscope variable '#{sessionScope.empname}" to the bind variable.
    Its urgent,..Pls do reply asap
    Thanks in advance
    Nasrin

    HI,
    You can use
    adf.context.sessionScope.get("YourSessionVariable")this code for assigning VO's bind variable value.write this code where you create bind variable and do not forget click on expression radio button.
    Rafat

Maybe you are looking for