cancel
Showing results for 
Search instead for 
Did you mean: 

Passing data through URL

0 Kudos

Hi All,

I am pretty new to ITS and I did go through all the forum threads regarding the passing of data through the URL to an ERP transaction. I am sure that this is a very old topic and I did go through the blogs as well. Even after doing so I could not get this thing to work. Maybe I am very dumb. I have created my own transaction and there is a field called as AUFNR on the screen. To transfer data to the screen field should I create a parameter in the parameter list which has other parameters like LOGIN,PASSWORD,~TRANSACTION?

If yes then in which parameter list should I create? Is it in the "ITS service" parameter list or the "Topic" parameters list?

Any help in this matter will be helpful.

Thanks in advance

Sudhi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Did you go through the following link?

/people/durairaj.athavanraja/blog/2004/09/23/pass-parameter-to-its-url-upadated-21st-june-2008

BR,

Disha.

Pls reward points for helpful answers.

0 Kudos

Hi Disha,

Yes I did go through the blog ans currently I am pasing the data as in this URL: http://idphl603.phl.sap.corp:55080/sap/bc/gui/sap/its/zsatisfy/?sap-client=800&sap-language=EN&AUFNR...

But even though I do this the data is not transferred. Should I change some stuff in the HTML code? My HTML template looks as below:

`include(~service="system", ~language="", ~theme="dm", ~name="TemplateLibraryDHTML.html")`

`SAP_TopInclude()`

<html>

<head>

`SAP_PageTitle()`

`SAP_Stylesheet()`

`SAP_JavaScript()`

</head>

<body `SAP_BodyAttributes()` onload="`SAP_OnloadJavaScript()`">

`SAP_TemplateHeader()`

`SAP_BodyContentBegin()`

`SAP_FormBegin()`

`SAP_DynproLayerBegin(002,001,115,028)`

`SAP_DynproGroupBoxBegin("BOX1")`

`SAP_DynproGroupBoxEnd("BOX1")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(004,003,015,001)`

`SAP_Label("USR02-BNAME")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(020,003,016,001)`

`SAP_InputField("USR02-BNAME")`

`SAP_DynproLayerEnd()`

`SAP_DynproLabelLine(004,003,020)`

`SAP_DynproLayerBegin(004,004,015,001)`

`SAP_Label("AUFK-AUFNR")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(020,004,016,001)`

`SAP_InputField("AUFNR")`

`SAP_DynproLayerEnd()`

`SAP_DynproLabelLine(004,004,020)`

`SAP_DynproLayerBegin(004,006,104,014)`

`SAP_DynproGroupBoxBegin("%#AUTOTEXT001")`

`SAP_DynproGroupBoxEnd("%#AUTOTEXT001")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(005,007,067,001)`

`SAP_Label("TXT")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(027,009,007,001)`

`SAP_Label("UTXT")`

`SAP_DynproLayerEnd()`

`SAP_DynproControlLayerBegin(036,009,003,001)`

`SAP_ControlContainer("SAD")`

`SAP_DynproControlLayerEnd()`

`SAP_DynproLayerBegin(051,009,009,001)`

`SAP_Label("STXT")`

`SAP_DynproLayerEnd()`

`SAP_DynproControlLayerBegin(061,009,003,001)`

`SAP_ControlContainer("HAPPY")`

`SAP_DynproControlLayerEnd()`

`SAP_DynproLayerBegin(071,009,019,001)`

`SAP_Label("ETXT")`

`SAP_DynproLayerEnd()`

`SAP_DynproControlLayerBegin(091,009,003,001)`

`SAP_ControlContainer("VHAPPY")`

`SAP_DynproControlLayerEnd()`

`SAP_DynproLayerBegin(005,012,015,001)`

`SAP_Label("TTIME")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(036,012,001,001)`

`SAP_InputField("SAD1")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(061,012,001,001)`

`SAP_InputField("HAPPY1")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(091,012,001,001)`

`SAP_InputField("VHAPPY1")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(004,022,006,001)`

`SAP_Button("SA")`

`SAP_DynproLayerEnd()`

`SAP_FormEnd()`

`SAP_BodyContentEnd()`

</body>

</html>

The Input field is AUFNR.

Should I create a parameter in the list?

Former Member
0 Kudos

Hi ,

Are you trying to call a transaction. If so your url is incomplete. Please check the format of the url.

You shoul also add <b>&transaction=<transaction name></b> in your url before you are setting the parameters.

Regards,

Vijith

0 Kudos

Hi Vijith,

I tried with the URL; http://idphl603.phl.sap.corp:55080/sap/bc/gui/sap/its/zsatisfy/?sap-client=800&sap-language=EN&trans... but still no luck.

Let me tell you breifly how I created the ITS service.

- First I created an ERP transaction

- Second I created an ITS service and I generated the HTML template for the same.

- Following are the paramaters of the ITS service

AUFNR 123

~AUTOSCROLL 1

~GENERATEDYNPRO 1

~LISTSCROLLING 1

~POPUPS 1

~STYLE DHTML

~THEME 99

~TIMEOUT 100

~TRANSACTION ZSAT_SUR

~WEBTRANSACTIONTYPE EWT

I tried to pass the parameter here too bu no luck.

- Then I created a Service in transaction SICF with the GUI Link as "Yes" and the GUI configuration as:

~AUTOSCROLL 0

~GENERATEDYNPRO 1

~LISTSCROLLING 0

~POPUPS 1

~STYLE DHTML

~TRANSACTION ZSAT_SUR

~THEME 99

~WEBTRANSACTIONTYPE EWT

AUFNR 123

I would appreciate if you could help me out here.

Former Member
0 Kudos

Hi,

I think the url is still not correct we had done the same scenario for a stan alone ITS and it was working. Never did this on Integrated ITS.Just check the url format given below and try again.

http://idphl603.phl.sap.corp:55080/sap/bc/gui/sap/its/

zsatisfy/!?sap-client=800&sap-language=EN&transaction=ZSAT_SUR&AUFNR=1234

Try running the transaction directly without the templates using the following url :

http://idphl603.phl.sap.corp:55080/sap/bc/gui/sap/its/

webgui/!?sap-client=800&sap-language=EN&transaction=ZSAT_SUR&AUFNR=1234

Thanks & Regards,

Vijith

0 Kudos

Hi Vijith,

I am sure you might find it weird but I just gave an OKCODE in my URL with some crap value and it started to work. I guess it needs an event to run the PBO again and fill the values to the respective fields.

Anyways thanks a lot for your help

athavanraja
Active Contributor
0 Kudos

<i>Then I created a Service in transaction SICF with the GUI Link as "Yes" and the GUI configuration as:</i>

did you specify the HTTP handler class (CL_HTTP_EXT_ITS) in the service?

and also its a good practice to pass AUFNR with its aplha converted value.

if you look at the domain of AUFNR there is an alpha conversion, so you need to pass 000000000234 instead of just 234

Regards

Raja

athavanraja
Active Contributor
0 Kudos

the above method with only take you to the initial screen with aufnr pre filled. if you want to skip the first screen, then you also need to pass the okcode.

Regards

Raja

athavanraja
Active Contributor
0 Kudos

how did you resolve this? hope you dont mind sharing that.

Regards

Raja