cancel
Showing results for 
Search instead for 
Did you mean: 

Passing values from Back end to HTML template in ITS development

Former Member
0 Kudos

Hi,

I am using SRM 4.00 fin project.

I devloped costome ITS program . i ams ending the values from module pool PBO to html template by using field-set macro.

But i ma not able to reda thsoe values in HTMl.

When itry to debugg then the values are reaching to Html template..

I devloped few programs in SRm3.5 but i never face this problam.

Wy the values are not recahing html when i executing without debugg.

I am using bellow code in PBO.

<b><b>hold_tabix = 0.

loop at t_itab into wa_itab.

add 1 to hold_tabix.

field-set 'RESID' hold_tabix wa_itab-r_code.

field-set 'RESDIS' hold_tabix wa_itab-text.

endLOOP.

field-transport.</b>

and in HTML template.

`repeat with i from 1 to RESID.dim`

`RESID<i>` *********** `RESDIS<i>` <br>

`end`</b>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you have any docs related to ITS development then kindly share with me at mr.abaper at gmail dot com

rg

sam

Former Member
0 Kudos

Hi

Try out this...

<b>To set the values in use the keyword

field-set</b> in PBO Module

<b>To get the values in use the keyword

field-get</b> in PAI Module

or Else,

<b>To get the values in use the keyword

field-transport </b>

Please give more details, incase any other information is required.

Hope this will help.

Please reward suitable points.

Regards

- Atul

Former Member
0 Kudos

I am using thios ekeo wards in PBO.

Like bellow

<b>hold_tabix = 0.

loop at t_itab into wa_itab.

add 1 to hold_tabix.

field-set 'RESID' hold_tabix wa_itab-r_code.

field-set 'RESDIS' hold_tabix wa_itab-text.

endLOOP.</b> endif.

field-transport.

and in HTMl using like

`repeat with i from 1 to 2`

`RESID<i>` *********** `RESDIS<i>` <br>

`end`

Message was edited by:

Srikanth Akula

Former Member
0 Kudos

hold_tabix = 0.
   loop at t_itab into wa_itab.
    add 1 to hold_tabix.
    field-set 'RESID' hold_tabix wa_itab-r_code.
    field-set 'RESDIS' hold_tabix wa_itab-text.
  endLOOP.

  endif.
field-transport.


and in HTMl


`repeat with i from 1 to 2`

    `RESID<i>` *********** `RESDIS<i>` <br>


`end`  



Former Member
0 Kudos

Hi

Can you paste the whole code with the custom transaction ? Have you prepared more than one screens in this transaction ?

Since i cannot access your system, It's difficult to find the exact resons, why this is not working in your case...

Wl try to answer you soon.

Regards

- Atul

Former Member
0 Kudos

I have only one screen(0100)

find the code in PBO


PROGRAM  ZPOPUP.

data: begin of itab occurs 0,
     name like adrc-name1,
     end of itab.
data: name(10) type c.
data : fill TYPE i.

data: RR_NOTE(160) type c,
      SC_NUM(10),
      SC_NUM1(10).
data: idx   TYPE i,
      line  TYPE i.

INCLUDE AVWRTCXM.

data: RESID_HTML(132)  OCCURS 0 WITH HEADER LINE,
      RESDES_HTML(255) OCCURS 0 WITH HEADER LINE,
      SCNUMBER_HTML(255) OCCURS 0 WITH HEADER LINE,
     lv_datalan TYPE i.
     data:ok_code like sy-ucomm.
DATA:BEGIN OF context_tab OCCURS 0.
        INCLUDE STRUCTURE savwctxt.
DATA:END  OF context_tab.


types :  begin of itab,
      r_code type BBP_IVREA-REASON_CODE,
      text   type BBP_IVREAT-text,
      end of itab.


types: t_tab TYPE itab OCCURS 0.
DATA: t_itab   TYPE standard table of itab.
data: wa_itab like line of t_itab.


MODULE STATUS_0100 OUTPUT.

perform get_its_context.
data: hold_tabix type i.

select BBP_IVREA~REASON_CODE  BBP_IVREAT~TEXT  into
             table t_itab
     from bbp_ivrea inner join bbp_ivreat on
     BBP_IVREA~MANDT    = BBP_IVREAT~MANDT and
     BBP_IVREA~REASON_CODE = BBP_IVREAT~REASON_CODE.


hold_tabix = 0.
   loop at t_itab into wa_itab.
    add 1 to hold_tabix.
    field-set 'RESID' hold_tabix wa_itab-r_code.
    field-set 'RESDIS' hold_tabix wa_itab-text.
  endLOOP.

  endif.
field-transport.

ENDMODULE.                 " STATUS_0100  OUTPUT

Code for HTML template is


<html>
  <head>
    
  </head>
  <body>



`repeat with i from 1 to RESID.dim`
    `RESID<i>` *********** `RESDIS<i>` <br>
`end`  

  </body>
</html>