on 05-11-2010 1:06 PM
Hi Gurus,
Iam trying to create the attribute(Funcenter in BO BUS0050), my logic is not working, i know i done a small mistake. plz help me.
i want to fect the Funcenter from FMBL by Using FMAREA and DOCNR (Document number )
Plzzz correct my ocde.
GET_PROPERTY FUNDSCENTER CHANGING CONTAINER.
tables:fmbl.
data: begin of ty_fmbl,
fm_area type fmbl-fm_area,
docnr type fmbl-docnr,
FUNDSCTR type fmbl-FUNDSCTR,
end of ty_fmbl.
select fm_area docnr FUNDSCTR from fmbl into ty_fmbl
where FM_AREA = OBJECT-KEY-FMArea and DOCNR = OBJECT-KEY-DocumentNumber.
endselect.
SWC_SET_ELEMENT CONTAINER 'FundsCenter' OBJECT-FUNDSCENTER.
END_PROPERTY.
GET_PROPERTY FUNDSCENTER CHANGING CONTAINER.
data:FUNDSCTR type fmbl-FUNDSCTR.
select FUNDSCTR from fmbl into FUNDSCTR
where FM_AREA = OBJECT-KEY-FMArea and DOCNR = OBJECT-KEY-DocumentNumber.
endselect.
OBJECT-FUNDSCENTER = FUNDSCTR.
SWC_SET_ELEMENT CONTAINER 'FundsCenter' OBJECT-FUNDSCENTER.
END_PROPERTY.
Thanks
Arghadip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You seem to be selecting into ty_fmbl, but you do not use that for anything? Please debug it in SWO1, it shouldn't be that difficult to find the reason why it is not working.
Regards,
Karri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.