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

SAPSCRIPT---DUPLICATE RECORDS WITH CALL FUNCTION 'WRITE_FORM'

Former Member
0 Likes
862

Hi,

I have found that when use the FUNCTION 'WRITE_FORM' with exporting parameters  type = 'BOTTOM' the records of out for my Sapscript have been duplicates in the bottom of my page. Someone  why know ?

      CALL FUNCTION 'WRITE_FORM'

        EXPORTING

          element   = 'ITEM_LINE'

          window    = 'MAIN'

          function  = 'APPEND'

          type      = 'BOTTOM'

        EXCEPTIONS

          element   = 1

          function  = 2

          type      = 3

          unopened  = 4

          unstarted = 5

          window    = 6

          OTHERS    = 7.

6 REPLIES 6
Read only

Former Member
0 Likes
758

Is there any specific reason to use bottom... because as you are using the element it will by default append at the bottom

Try just with the element and the window... it will trigger appropriately.

BR

Read only

arindam_m
Active Contributor
0 Likes
758

Hi,

Just takes you back to the basic definitions. Hope the link helps all. and yes Quoted from the SAP Bible

The system interprets this parameter only for output to the main window.

The parameter determines the area of the main window into which you want to output the element.

Possible values:

'TOP'               header area

'BODY'          main area

'BOTTOM'     footer area

Default value:     'BODY'

http://help.sap.com/saphelp_nw70/helpdata/en/d6/0dba41494511d182b70000e829fbfe/content.htm

Cheers,

Arindam

Read only

Former Member
0 Likes
758

sorry for my explanation .... but wanted to say that this function was ejecunte in my SAPscript Main window so I went to the last record repeated X times (the last record in the internal table) as the loop turns which contained this function with type = 'BOTTOM '

Read only

Former Member
0 Likes
758

sorry for my explanation .... but wanted to say that this function was ejecunte in my SAPscript Main window so I went to the last record repeated X times (the last record in the internal table) as the loop turns which contained this function with type = 'BOTTOM '

Read only

0 Likes
758

Hi,

Still not very clear to me but I would suggest reading the link BOTTOM when passed as a parameter takes you to the footer area.

Cheers,

Arindam

Read only

anilkumar_kalkivai
Active Participant
0 Likes
758

Hi Oriol,

Please check below link,

http://scn.sap.com/thread/1382005

This might help you.

Regards,

Anil.