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
770

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

5 REPLIES 5
Read only

Former Member
0 Likes
658

Hi,

Reason:

1. CS_POSTAB : is not declared as itab.

2. if CS_POSTAB is declared but not in proper scope means global/local. so try to declare in global and check.

Read only

0 Likes
658

Thanks for reply.

Read only

Former Member
0 Likes
658

Hi Sairam

It looks that you have not declared the table ' CS_POSTAB' in the program. check this once...

Regards

Read only

Former Member
0 Likes
658

Hi

The parameter CS_POSTAB of routine POSTAB_DELIVERY_FILL_USER is not a table so u can't use LOOP/ENDLOOP statament for it.

Your code should be:

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

cs_postab-sdabw = likp-sdabw.

That routine is called while the table with delivery to be displayed is beeing looped, so you don't need to do a loop.

Max

Read only

0 Likes
658

Thanks Max.

Instead that coding i write the below coding.Is it correct for that requirement.

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.
  CS_POSTAB-ZZSDABW = WS_C_SDABW.
ENDIF.

Please suggest me.

Thanks & Regads,

sairam