cancel
Showing results for 
Search instead for 
Did you mean: 

creating a simple HTML template

Former Member
0 Kudos

Hello All,

I have to create a simple HTML template for a screen in SRM for Mass change of a field on contracts. I have ITS service ready and I have created a HTML template with reference to the prorgam and screen. It generated following code. what change do I need to make to make the template displayed. When i run the template it gives me an error 'URL http://XXXXX/sap/bc/gui/sap/its/ysrm_ctr_mass/ call was terminated because the corresponding service is not available'.I have never worked on HTML templates before. Anybody wannna help me, pls?

Thanks,

Chandra

Accepted Solutions (1)

Accepted Solutions (1)

former_member316351
Active Contributor
0 Kudos

Hello Chandra,

Have you created the corresponding service in SICF? It sounds like you need to create ysrm_ctr_mass. The easiest is to copy an existing ITS service and then alter it for your transaction. You will probably need to alter the GUI Configuration so that you have ~transaction = ysrm_ctr_mass and ~generatedynpro = 1 at the very least.

Edgar

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

just run the service and navigate to the dynpro related to the template.

regards

Tobias

Former Member
0 Kudos

Here's the generated code:

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

`SAP_DynproLayerBegin(003,001,028,001)`

`SAP_Label("%#AUTOTEXT001")`

`SAP_DynproLayerEnd()`

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

`SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(030,003,005,001)`

`SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`

`SAP_DynproLayerEnd()`

`SAP_DynproLabelLine(003,003,030)`

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

`SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`

`SAP_DynproLayerEnd()`

`SAP_DynproLayerBegin(030,004,005,001)`

`SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`

`SAP_DynproLayerEnd()`

`SAP_DynproLabelLine(003,004,030)`

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

`SAP_Button("CTR_NEG_AMEND_REJ")`

`SAP_DynproLayerEnd()`