Skip to Content
author's profile photo Former Member
Former Member

one row per page in smartform

hi,

this is my internal table (it_itab)

vbeln matnr -mvgr1--bezei.

1) 156 brk18 - DC --My Dreams

2) 156 -- bpr22 -- DC -- My Dreams

3) 156 -- ckm31-- FT -- Faith.

4) 156 -- ckm34 -- TL -- Time Less

i need to print this data in smart forms like this,,

<u>MY Dreams</u>

156------ brk18---- DC

bpr22----DC

in the next page.

<u>Faith</u>

156 -ckm31 FT

in the next page

<u>TimeLess</u>

156 -ckm34 -TL

like this. iam working on ECC6.0. iam writing this smart form for one of my jewellery client , who is going to us this as catalog.

thks

anilm

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 11:27 AM

    Anil,

    Here is what you can do.

    In your smartform main window

    create a loop node.

    inside the loop node make a code snippet.

    temp_bezei = itab-bezei.

    at new bezei.

    set new_page_flag = X.

    now create a command node, set Go to new_page.

    conditons for command node is new_page_flag = X.

    refresh new_page_flag.

    all this in the loop.

    in your pages u can have a window which prints itab-bezei.

    main window in these pages can hve the remainig itab values.

    Message was edited by:

    Nehal Fonseca

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 11:30 AM

    hi anil

    take my Dreams ,Faith ,Time less as titles

    and select statement to loop at itab

    at new vbeln

    endat

    print remaing things

    endloop

    same coding for remaing things

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 11:31 AM

    hi

    in the table loop there is a field called begin sort of and end of sort both put BEZEI as the fieldname in that and it will create tree node inside the Table loop. Inside the Table node put BEZEI for output and after that inside the loop print all the fields and after that in the end of sort put a command to go to the next page.

    Hope That Helps

    Anirban M.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Its working for me again: here what I did

        DATA: wa_vbak TYPE types_vbak.
      
        wa_vbak-vbeln = '156'.
        wa_vbak-matnr = 'erd185'.
        wa_vbak-mvgr1 = 'DC'.
        wa_vbak-bezei = 'my dreams'.
        wa_vbak-netwr = '1350.00'.
        APPEND wa_vbak TO t_vbak.
        CLEAR wa_vbak.
      
        wa_vbak-vbeln = '156'.
        wa_vbak-matnr = 'erd185'.
        wa_vbak-mvgr1 = 'DC'.
        wa_vbak-bezei = 'my dreams'.
        wa_vbak-netwr = '5478.00'.
        APPEND wa_vbak TO t_vbak.
        CLEAR wa_vbak.
      
        wa_vbak-vbeln = '156'.
        wa_vbak-matnr = 'xpr154'.
        wa_vbak-mvgr1 = 'TL'.
        wa_vbak-bezei = 'time less'.
        wa_vbak-netwr = '6987.00'.
        APPEND wa_vbak TO t_vbak.
        CLEAR wa_vbak.
      
        wa_vbak-vbeln = '156'.
        wa_vbak-matnr = 'zws123'.
        wa_vbak-mvgr1 = 'TL'.
        wa_vbak-bezei = 'time less'.
        wa_vbak-netwr = '2548.00'.
        APPEND wa_vbak TO t_vbak.
        CLEAR wa_vbak.
      
        wa_vbak-vbeln = '156'.
        wa_vbak-matnr = 'pkr628'.
        wa_vbak-mvgr1 = 'TL'.
        wa_vbak-bezei = 'time less'.
        wa_vbak-netwr = '5987.00'.
        APPEND wa_vbak TO t_vbak.
        CLEAR wa_vbak.
      
        wa_vbak-vbeln = '156'.
        wa_vbak-matnr = 'qwk987'.
        wa_vbak-mvgr1 = 'FL'.
        wa_vbak-bezei = 'faith'.
        wa_vbak-netwr = '8745.00'.
        APPEND wa_vbak TO t_vbak.
        CLEAR wa_vbak.
      
      * In a loop 
      T_VBAK        assigning      <L_VBAK> .
      
      ** Event on Sort Begin = 'X'. FIELD : &<L_VBAK>-BEZEI&
      ** Event on Sort End    = 'X'. COMMAND: Go to New Page: %PAGE1. 
      
      

      If you wish I can send the XML file of the SF to u.

      Hope That Helps

      Anirban M.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.