Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

display query

Former Member
0 Likes
520

hi

below is my code in put put it displays as

Advance License Information its fine..

now wn i give plant and date as input i want the output as

Advance License Infomation

Plant : wtvr plant i give as input that should be displayed

Date ; wtvr date i give that should be displayed...

i wil get these information in a single line...but i want the out put as above shown

data : IT_HEADER type SLIS_T_LISTHEADER,
         WA_HEADER type SLIS_LISTHEADER,

  WA_HEADER-TYP = 'H'.
  WA_HEADER-INFO = 'Advance License Information'.
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.

Plz help me on this

Regards

Smitha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
485

Hello


  WA_HEADER-TYP = 'H'.
  WA_HEADER-INFO = 'Advance License Information'.
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
if not P_PLANT is initial.
  WA_HEADER-TYP = 'H'.
  concatenate 'Plant' P_PLANT into WA_HEADER-INFO separated by space. " <- here P_PLANT - from import parameter
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
endif.
if not P_DATE is initial.
  WA_HEADER-TYP = 'H'.
  concatenate 'Date' P_DATE into WA_HEADER-INFO separated by space. " <- here P_DATE - from import parameter
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
endif.

3 REPLIES 3
Read only

Former Member
0 Likes
485

Hi

Give Column 1 to all the three fields

and row no 1,2,3.

Regards

Aditya

Read only

Former Member
0 Likes
485

concatenate the plant and date to the WA_HEADER-INFO.

WA_HEADER-INFO = 'Advance License Information'.

concatenate WA_HEADER-INFO ',Plant:', GV_PLANT, ',Date:', GV_DATE into WA_HEADER-INFO.

Read only

Former Member
0 Likes
486

Hello


  WA_HEADER-TYP = 'H'.
  WA_HEADER-INFO = 'Advance License Information'.
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
if not P_PLANT is initial.
  WA_HEADER-TYP = 'H'.
  concatenate 'Plant' P_PLANT into WA_HEADER-INFO separated by space. " <- here P_PLANT - from import parameter
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
endif.
if not P_DATE is initial.
  WA_HEADER-TYP = 'H'.
  concatenate 'Date' P_DATE into WA_HEADER-INFO separated by space. " <- here P_DATE - from import parameter
  append WA_HEADER to IT_HEADER.
  clear WA_HEADER.
endif.