Skip to Content
0
Former Member
Dec 04, 2006 at 01:30 PM

create field with error messege

32 Views

Hallow I doing a batch input and I wont to have all the error messege(messege and messegeid) in field like error_messege how can I do it

DATA: sucsses_messege TYPE syst-subrc.

DATA: returen_messege LIKE TABLE OF bdcmsgcoll.

DATA: messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.

DATA: wa_messtab LIKE LINE OF messtab .

DATA: error_messege(100) TYPE c.

LOOP AT itab1.

SPLIT itab1 AT ',' INTO:

itab-osek_morsh

itab-company_name

itab-company_code.

APPEND itab.

ENDLOOP.

LOOP AT itab.

REFRESH messtab.

CLEAR messtab.

CALL FUNCTION 'YHR_VENDOR_BI'

EXPORTING

  • CTU = 'X'

  • MODE = 'N'

  • UPDATE = 'S'

  • GROUP =

  • USER =

  • KEEP =

  • HOLDDATE =

  • NODATA = '/'

lifnr_001 = 'osek_morsh'

ktokk_002 = 'Z001'

anred_003 = 'Company'

name1_004 = 'company_name'

sortl_005 = 'company_name'

land1_006 = 'IL'

spras_007 = 'HE'

stceg_008 = 'company_code'

IMPORTING

subrc = sucsses_messege

TABLES

messtab = returen_messege.

PERFORM write_message.

ENDLOOP.

ENDFORM. " get_data

&----


*& Form write_message

&----


  • text

----


  • --> p1 text

  • <-- p2 text

----


FORM write_message .

<b>MOVE wa_messtab TO error_messege.</b>

<b>it will help if u give me example</b>

thankes