Application Development and Automation 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: 
Read only

Error

Former Member
0 Likes
906

Hi,

Iam developing one enhcancement Delivery due list report.Currently Vl10G is not showing some fields.For that one i append one field ZZSDABW in SHP_VL10_ITEM.i write the logic in the enhancement LV50R_VIEWG07 in include POSTAB_DELIVERY_FILL_USER .

logic is

Loop at cs_postab.

select single * from likp where vbeln eq cs_postab-vbeln.

cs_postab-sdabw = likp-sdabw.

Modify cs_postab.

endloop.

When i active this enhancemt it showing the error " CS_POSTAB is neither spefied under "TABLES" nor defined as an internal table".

Why it showing error?Please suggest me.Or any modifycation in code?

Please help me.

Thanks,

sairam

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
862

Hi

since CS_POSTAB is a structure you can't use MODIFY statement for it

better use IT_POSTAB which is refering Table type for this and assign the value to CS_POSTAB from IT_POSTAB.

Reward points if useful

Regards

Anji

8 REPLIES 8
Read only

Former Member
0 Likes
862

Hi,

Check if for this enhancement cs_postab is defined under include tables

or not. If yes add your field in this and then activate. It should a green light before

this table name also

Asha

Message was edited by:

Asha Raghuvanshi

Read only

Former Member
0 Likes
862

Hi,

CS_poststa is definied as an structur/ table not as an internal table.

So, you need to work with SELECT, not with LOOP.

Regards

Nicole

Read only

former_member186741
Active Contributor
0 Likes
862

as Nicole said cs_postab is not an internal table. This exit must get called multiple times one for each item. I think you can just code it like:

select single * from likp where vbeln eq cs_postab-vbeln.

cs_postab-sdabw = likp-sdabw.

Read only

Former Member
0 Likes
863

Hi

since CS_POSTAB is a structure you can't use MODIFY statement for it

better use IT_POSTAB which is refering Table type for this and assign the value to CS_POSTAB from IT_POSTAB.

Reward points if useful

Regards

Anji

Read only

0 Likes
862

Hi,

Can u expain with code.

Thanks & Regards,

sairam

Read only

Former Member
0 Likes
862

Hi,

Instead of that coding This below coding is working.

TABLES: VBAK.
DATA: WS_C_SDABW LIKE LIKP-SDABW.

SELECT SINGLE SDABW FROM LIKP INTO WS_C_SDABW WHERE VBELN =VBAK-VBELN.

IF SY-SUBRC EQ 0.

   MOVE WS_C_SDABW TO CS_POSTAB-ZZSDABW.

ENDIF.

Is the correct code?Fot that requriment.

Thanks,

sairam

Read only

0 Likes
862

Hi,

This seems to be perfectly fine and meets your requirements

Asha

Read only

0 Likes
862

Thanku Asha,

I will followed this code.I will assign bonus points to u.

Thanks,

sairam