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- * is getting populated in bdcdata table

Former Member
0 Kudos
76

Hi experts,

When I use At new statement for some purpose in my loop where bdcdata is getting field, somehow * is gettign stored in the bdcdata table instead of value. Why is it so? Please guide.

4 REPLIES 4

Former Member
0 Kudos
41

At new F1 will return '*' for fields on the left side of F1 in the structure. Only the fields on the right side are returned properly.

Former Member
0 Kudos
41

Hi Friend ,

Please use clear statement as CLEAR: bdcdata,bdcdata[], so that it will fill with latest loop data instead of garbage.

Also please see this SDN Wiki for BDC program with LOOP -AT NEW statements are used.

[http://wiki.sdn.sap.com/wiki/display/Snippets/SampleBDCforTableControl]

Regards,

Edited by: Loganathan girishkumar on Nov 3, 2009 11:01 PM

Former Member
0 Kudos
41

Its a Frequently Asked Question. Please SEARCH in SCN before posting

Former Member
0 Kudos
41

Hi,

When your using AT NEW statement in ABAP you will get the value only for the field your using.

For other field values you will get a * value inside the AT NEW statement.

For eg:- if you use AT NEW MATNR and your internal table contains other fields like ERDAT etc you can only see the value for MATNR and for ERDAT you can see it as *.

So you can assign the contents of work area of loop to another work area and that work area inside your AT NEW STATEMENT.

Regards,

Subhashini