cancel
Showing results for 
Search instead for 
Did you mean: 

regarding output

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

kiran_k8
Active Contributor
0 Kudos

Hi,

quotes not ended

54 sy-vline,55 'delv schedule no'.

K.Kiran.

Answers (6)

Answers (6)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos
DATA: it_zvbfa TYPE STANDARD TABLE OF ty_zvbfa,
wa_zvbfa TYPE ty_zvbep1, <--------- change to ty_zvbfa
it_zvbep1 TYPE STANDARD TABLE OF ty_zvbep1,
wa_zvbep1 TYPE ty_zvbep1.

Regards,

Sathish Reddy.

Former Member
0 Kudos

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

Former Member
0 Kudos

avoid single codes and try.

former_member184657
Active Contributor
0 Kudos

>

> avoid single codes and try.

????

former_member181995
Active Contributor
0 Kudos

>

> >

> > avoid single codes and try.

>

> ????

She actually means avoid her/HIS reply and try

Cheers

former_member184657
Active Contributor
0 Kudos

LOL

Former Member
0 Kudos

you had missed qute at this line

54 sy-vline,55 'delv schedule no.

ans

54 sy-vline,55 'delv schedule no*'*.

Former Member
0 Kudos

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

Former Member
0 Kudos

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