Skip to Content
0
Former Member
Aug 21, 2005 at 03:46 PM

whichn content in the wa_names-name??

64 Views

TYPE-POOLS SYDES.

DATA:TD TYPE SYDES_DESC.

DATA: WA_NAMES TYPE SYDES_NAMEINFO.

DATA: NAME TYPE STRING.

DATA: NAME1 TYPE STRING.

DATA: NAME2 TYPE STRING.

FIELD-SYMBOLS: <F01> TYPE ANY.

DO.

ASSIGN COMPONENT SY-INDEX OF STRUCTURE BAPISDITM TO

<F01>.

IF SY-SUBRC <> 0.

EXIT.

ELSE.

DESCRIBE FIELD <F01> INTO TD.

LOOP AT TD-NAMES INTO WA_NAMES FROM 2 TO 3.

IF WA_NAMES-CONTINUE = '*'.

NAME = WA_NAMES-NAME.

ELSE.

CONCATENATE NAME WA_NAMES-NAME INTO NAME.

ENDIF.

ENDLOOP.

  • SPLIT NAME AT '-' INTO NAME1 NAME2.

ENDIF.

ENDDO..

these codes in one company sap system get the result of the component in name1 and name2

and in one company sap system can only get the result of the component type in name1 and no thing in name2.

what's the matter?