Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem with perform.... plz help me its very urgent

Hi Experts,

I'm working on unicode defects. I have a perform in my program whose declaration is like this:

PERFORM REISE_ABLEHNUNG USING TEXT-V01 *T706V+3(61).

form:

FORM REISE_ABLEHNUNG USING TEXT

ARGUMENT.

DATA: E_TYPE LIKE SY-MSGTY,

E_ID LIKE SY-MSGID,

E_NO LIKE SY-MSGNO,

E_V1 LIKE SY-MSGV1,

E_V2 LIKE SY-MSGV2,

E_V3 LIKE SY-MSGV3,

E_V4 LIKE SY-MSGV4.

SUMMARY.

IF REI_ABLEHN = 0.

IF SY-TCODE EQ 'PREC' OR

SY-TCODE EQ 'PRPY' OR

SY-TCODE(2) <> 'PR' OR

SY-BATCH EQ 'X'.

IF SIMULATE EQ 'X'.

  • XUD: errorhandling for BAPI's

  • only used within the function group HRTR, in form SUB_ABRECHNUNG

FREE MEMORY ID 'TS'.

FREE MEMORY ID 'TE'.

E_TYPE = 'E'.

E_ID = '56'.

E_NO = 16.

MOVE TEXT TO E_V1.

MOVE ARGUMENT TO E_V2.

CLEAR: E_V3, E_V4.

EXPORT E_TYPE E_ID E_NO E_V1 E_V2 E_V3 E_V4

TO MEMORY ID 'TECERROR'.

ELSE.

  • SKIP.

  • WRITE: / text-e01, wa_perio-reinr,

  • text-e02, pernr-pernr,

  • text-e03.

ENDIF.

ELSE.

  • Abrechnung / Simulation mit PF-Taste

FREE MEMORY ID 'TS'.

FREE MEMORY ID 'TE'.

MESSAGE I016 WITH TEXT ARGUMENT.

ENDIF.

ELSE.

  • SKIP.

ENDIF.

  • DETAIL.

REI_ABLEHN = 1.

F = 1.

ENDFORM. "END OF REISE_ABLEHNUNG

<b> here t706v is a table with 18 fields and length is 76 in actual parameter of perform... </b>

Im getting one syntax error:

sum of the offset and length (=64) exceeds the length of the start (=46) of the structure . - not allowed in unicode programs.-

kindly tell me how to fix this....

urgent...

Regards,

Radhika.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question