on 09-16-2008 10:21 AM
Dear Experts,
My code is like this.
uline.
write:/1 sy-vline,5 'sales docu no',
18 sy-vline,19 'pre sd doc',
30 sy-vline,31 'item num',
45 sy-vline,46 'material no',
54 sy-vline,55 'delv schedule no.
when i am syntactically checking its giving the message as
Literals that take up more than one line not permitted.
how can i come across this problem?
Thanks
Hi,
quotes not ended
54 sy-vline,55 'delv schedule no'.
K.Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You just increase the line size declaration in ur report here is the example:
report ZTEST no standard page heading
line-size 255
line-count 65
message-id ZCHK.
I hope u will get the solution
Thanks & Regards
Ashu Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
See my code once and it is giving the syntavtical error as
"The data object wa_zvbfa does not have a component called "MATNR". and
Tha data object wa_zvbfa has no component called "VBELV" but there is VBELN.
REPORT zsel_prg2.
TABLES:zvbfa,zvbep1.
TYPES:BEGIN OF ty_zvbfa,
vbeln TYPE zvbfa-vbeln,
vbelv TYPE zvbfa-vbelv,
posnr TYPE zvbfa-posnr,
matnr TYPE zvbfa-zzmatnr,
fktyp type zvbfa-zzfktyp,
END OF ty_zvbfa.
TYPES:BEGIN OF ty_zvbep1,
vbeln TYPE zvbep1-vbeln,
posnr TYPE zvbep1-posnr,
etenr TYPE zvbep1-etenr,
END OF ty_zvbep1.
DATA: it_zvbfa TYPE STANDARD TABLE OF ty_zvbfa,
wa_zvbfa TYPE ty_zvbep1,
it_zvbep1 TYPE STANDARD TABLE OF ty_zvbep1,
wa_zvbep1 TYPE ty_zvbep1.
PARAMETER:v_fktyp TYPE zvbfa-zzfktyp.
SELECT-OPTIONS: s_matnr FOR zvbfa-zzmatnr.
SELECT vbeln
vbelv
posnr
FROM zvbfa INTO TABLE it_zvbfa
WHERE zzmatnr IN s_matnr.
IF sy-subrc = 0.
SELECT vbeln
posnr
etenr
FROM zvbep1
INTO TABLE it_zvbep1
FOR ALL ENTRIES IN it_zvbfa
WHERE vbeln = it_zvbfa-vbeln.
ENDIF.
IF sy-subrc NE 0.
WRITE:/ 'no records found for the given selection criteria'.
EXIT.
ELSE.
ULINE.
WRITE:/1 sy-vline,5 'sales docu no',
18 sy-vline,19 'pre sd doc',
30 sy-vline,31 'item num',
45 sy-vline,46 'material no',
54 sy-vline,55 'delv schedule no',
100 sy-vline.
LOOP AT it_zvbfa INTO wa_zvbfa.
LOOP AT it_zvbep1 INTO wa_zvbep1.
WRITE:/1 sy-vline,
5 wa_zvbfa-vbeln,
18 sy-vline,
19 wa_zvbfa-vbeln,
30 sy-vline,
31 wa_zvbfa-posnr,
45 sy-vline,
46 wa_zvbfa-matnr,
54 sy-vline,
55 wa_vbep1-etenr,
100 sy-vline.
ULINE.
ENDLOOP.
ENDLOOP.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please have a look into your declaration part.
You have declared as,
TYPES:BEGIN OF ty_zvbep1,
vbeln TYPE zvbep1-vbeln,
posnr TYPE zvbep1-posnr,
etenr TYPE zvbep1-etenr,
END OF ty_zvbep1.
DATA: it_zvbfa TYPE STANDARD TABLE OF ty_zvbfa,
wa_zvbfa TYPE ty_zvbep1. (doens't have MATNR and VBLEV in this type)
I think you have put "wa_zvbfa TYPE ty_zvbep1." instead of " wa_zvbfa TYPE ty_zvbfa".
Please correct it and try.
Thanks
Sumi
avoid single codes and try.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you had missed qute at this line
54 sy-vline,55 'delv schedule no.
ans
54 sy-vline,55 'delv schedule no*'*.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
copy this and paste and try to find out the mistake
uline.
write: /1 sy-vline, 5 'sales docu no',
18 sy-vline, 19 'pre sd doc',
30 sy-vline, 31 'item num',
45 sy-vline, 46 'material no',
54 sy-vline, 55 'delv schedule no'.
Regards,
Kasuladevi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chitty,
I think you missed out closing the quotes in the last line of the code.
replace your code with the code mentioned below,
uline.
write:/1 sy-vline,5 'sales docu no',
18 sy-vline,19 'pre sd doc',
30 sy-vline,31 'item num',
45 sy-vline,46 'material no',
54 sy-vline,55 'delv schedule no'.
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.