Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BDC Session for a Z Table with Table Maintenance

Former Member
0 Kudos

How do we create a BDc session to Load a Z Table with entries. Note that the Z table has Table Maintenance associated with it.

I am facing this issue:

eg. *perform bdc_field using 'ZPHU_FUNC_LEVEL-ZZ_FL_1(01)'

  • 'aa'.

Note the (01) after the table_name-field_name. How do we move to the next row?

I have tried using a variable instead of '01' and assigning sy-tabix to it. But it doesnt recognise the filed.

1 ACCEPTED SOLUTION

kostas_tsioubris
Contributor
0 Kudos

Hi,

try like this

DATA:

LW_INDX_CHAR(10).

DATA: L_BDC_FIELD(30) VALUE 'ZPHU_FUNC_LEVEL-ZZ_FL_1('.

WRITE SY-TABIX TO LW_INDX_CHAR USING EDIT MASK 'LL__________'.

CONCATENATE L_BDC_FIELD LW_INDX_CHAR ')' INTO L_BDC_FIELD.

PERFORM BDC_FIELD USING L_BDC_FIELD.

Kostas

Message was edited by:

Kostas Tsioubris

3 REPLIES 3

Former Member
0 Kudos

refer table control logic may be useful

0 Kudos

with SM30 you can also use copy past from excel if it are not many records and you have the table maintenance on row level screen only

kostas_tsioubris
Contributor
0 Kudos

Hi,

try like this

DATA:

LW_INDX_CHAR(10).

DATA: L_BDC_FIELD(30) VALUE 'ZPHU_FUNC_LEVEL-ZZ_FL_1('.

WRITE SY-TABIX TO LW_INDX_CHAR USING EDIT MASK 'LL__________'.

CONCATENATE L_BDC_FIELD LW_INDX_CHAR ')' INTO L_BDC_FIELD.

PERFORM BDC_FIELD USING L_BDC_FIELD.

Kostas

Message was edited by:

Kostas Tsioubris