‎2007 May 08 7:43 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
‎2007 May 08 7:55 AM
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
‎2007 May 08 7:47 AM
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
‎2007 May 08 7:47 AM
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
‎2007 May 08 7:53 AM
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.
‎2007 May 08 7:55 AM
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
‎2007 May 08 9:13 AM
‎2007 May 08 8:51 AM
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
‎2007 May 08 8:58 AM
Hi,
This seems to be perfectly fine and meets your requirements
Asha
‎2007 May 08 9:19 AM
Thanku Asha,
I will followed this code.I will assign bonus points to u.
Thanks,
sairam