2007 May 08 7:45 AM
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
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
2007 May 08 8:01 AM
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.
2007 May 08 10:39 AM
2007 May 08 6:51 PM
Hi Sairam
It looks that you have not declared the table ' CS_POSTAB' in the program. check this once...
Regards
2007 May 08 7:06 PM
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
2007 May 09 7:00 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |