on 01-19-2009 10:02 AM
Hi All,
I am working on scripts & i am using standard program is RFKORD50 for Customer Invoice and i created my own Z Script for that. Now the problem is in My main window i am getting wrong no of line items.
I want to modify Main window. How can i change main window. I write PERFORM ENDPERFORM.
But i am able to modify line items but not no of Lines.
For more clear : I am getting 4 line items, i want modify it to get 6 line items which is available in table.
Can anybody tel how can i do it.
Thanks,
Naresh Kumar.
Use meaningful subject
Edited by: Vijay Babu Dudla on Jan 19, 2009 5:27 AM
hi naresh,
were you able to solve this problem without modifying the driver program?
I want to use only my Z program
-katie.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Naresh,
You have to modify your driver program for the two more as from the driver program you are getting 4 line items in the table however you have added two more line in table but the main window will print for only those 4 line items.
Regards
Lalit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
once check the program and layout , Have a breakpoint both in the program and also in the scrpt and check the 6 line items are comming in the program level and not populating in the form or it is not comming in the program itself. If it is comming in the program and not in the form then check in the respective text element any page checks or special conditions are there.
If it is not comming in the program itself, then please check the select statement and also the respective write form any conditions are there.
Regards,
Madhu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
for this write one z program using itcsy strcture and pass the values.
REPORT YMMR_TDS_LPRG .
TABLES: ADRC."Central address administration
----
FORM FETCH_VEN_ADD *
----
........ *
----
--> IN_TAB *
--> OUT_TAB *
----
FORM FETCH_VEN_ADD TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
DATA: L_STREET4 LIKE ADRC-CITY2,
L_STREET5 LIKE ADRC-LOCATION,
L_INDEX1 LIKE SY-TABIX.
DATA: LEN TYPE I.
DATA: Z1(5) VALUE '00000'.
LEN = STRLEN( IN_TAB-VALUE ).
IF LEN = 5.
CONCATENATE '00000' IN_TAB-VALUE INTO IN_TAB-VALUE.
ELSEIF LEN = 6.
CONCATENATE '0000' IN_TAB-VALUE INTO IN_TAB-VALUE.
ENDIF.
SELECT CITY2 LOCATION FROM ADRC
INTO (L_STREET4,L_STREET5)
WHERE ADDRNUMBER = IN_TAB-VALUE.
IF SY-SUBRC = 0.
LOOP AT OUT_TAB.
CLEAR L_INDEX1.
IF OUT_TAB-NAME = 'ADRC-CITY2'.
L_INDEX1 = SY-TABIX.
OUT_TAB-VALUE = L_STREET4.
MODIFY OUT_TAB INDEX L_INDEX1 TRANSPORTING VALUE.
ELSE.
L_INDEX1 = SY-TABIX.
OUT_TAB-VALUE = L_STREET5.
MODIFY OUT_TAB INDEX L_INDEX1 TRANSPORTING VALUE.
ENDIF.
ENDLOOP.
ENDIF.
ENDSELECT.
ENDFORM.
Se71
/:PERFORM FETCH_VEN_ADD IN PROGRAM YMMR_TDS_LPRG
/:USING &T001-ADRNR&
/:CHANGING &ADRC-CITY2&
/:CHANGING &ADRC-LOCATION&
/:ENDPERFORM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Kesav,
As i mentioned above i already user PERFORM and ENDPERFORM in script and i developed code in my zreport. But I am able to change the line items data. Unable to change the NOUMBER OF LINE items.
Problem is My out put have one line item that is given by standard program and it is calling my perform which is defined in Zprogram only one time. But i need more line items based on my own condition. I can get more line items in Zprogram and i able to pass values to DRIVER PROGRAM (standard one) but it is displaying last line item in the script because the text element calling only one time.
To: Madhu,
The program it self giving only one line item. I dont want to chage my standard program name.
I want to change my script.
In this case how can i get more line items into output.
Thanks,
Naresh
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.