10-06-2007 7:02 AM
Hi experts,
please i need help very urgent.
REQUIREMENT:
credit key should be able to determine the allocation cost element and sending cost center with reference to plant.
coom0001 this cheched while determining the allocation cost element and credit cost center.
please help here: the program should look up in the z-table(i have created z-table with reference sap std table tzku3 with some field )with the information about keyfield value in the internal table. the derived value for the non-key field should be privided back to internal table.
Error handler:
if no relevant record is found in z-table standard program has logic to look back in the std system table for credit key
PLEASE help me sending complete code for above object.
with regards,
satya.
10-06-2007 7:49 AM
Hi satya,
you should write a code and if you stuck up somewhere we can help you in correcting that.
Regards,
Atish
10-06-2007 12:36 PM
Hi Atish,
i have writen in.
Include:
Data:itab type ztable occurs 1 with header line.
data:i_werks type ztable-werks
select * from ztable into table itab where zuent = i_credt(importing parametr)
kokrs = i_kokrs (importing parametr)
datbis = i_datbis(importing parametr)
werk = i_werks(extra field not in imp and exp) addd in ztable.
select aufnr kstar prfix kostl prznr from ztable into (E_aufnr,e_prifix,e_kostl e_prznr) for all entries in itab where zuent = itab-zuent.
if sy-subrc ne 0.
endif.
I think it is not corrct but please make correction.
regards,
satya.