Hi Experts,
In an Infobject 0xyz. i have added an "bpartner" as attribute to 0xyz..(Already data is exists for bpartner). Since for this bpartner(attribute of 0xyz) the data is not showing in maiantain master data of 0XYZ Infoobject. I didnt not maaped in the transfer rules of 0XYZ to datasource, since data is already loading for this arrtibute(bpartner) from other source.
Already 0XYZ contains 0Partner.i want to see the data for "bpartner" where these two partners are equal in maintain master data of 0XYZ.
how can i map the bpartner in transfer rules of 0XYZ? or do i need to write any fied routine ? Any one please advise me
Thanks
Hi
Yes, you need to load data through same DS if have source field. since you have not mapped transforation so not able to see data. If you dont have soure field then connect other source or write a lookup to read from actual BPARTNER.
Jagadeesh.M
Hi Jagadesh,
I write the start routine for populating the data for bpartner in trnsfer rules.Iam getting an error as
"DATAPAK" is a table without a header line and therefore has no component called "EXGPTR".
Can you please advise where i need to change the code for this error?
Code:
DATA: TS_DATAPAK TYPE TRANSFER_STRUCTURE.
DATA: ls_vendor TYPE /BI0/PVENDOR.
DATA: lt_vendor LIKE SORTED TABLE OF ls_vendor
WITH UNIQUE KEY vendor
WITH HEADER LINE.
SELECT vendor
FROM /bi0/pvendor
INTO TABLE lt_vendor
WHERE objvers = 'A'.
LOOP AT DATAPAK into TS_DATAPAK.
READ TABLE lt_vendor
WITH TABLE KEY 0vendor = DATAPAK-EXGPTR.
IF sy-subrc = 0.
DATAPAK-0vendor = lt_vendor-VENDOR.
ENDIF.
MODIFY DATAPAK FROM TS_DATAPAK.
* abort <> 0 means skip whole data package !!!
ABORT = 0.
Hi Anil,
Please update the code as shown below:
READ TABLE lt_vendor
WITH TABLE KEY 0vendor = TS_DATAPAK-EXGPTR.
IF sy-subrc = 0.
TS_DATAPAK-0vendor = lt_vendor-VENDOR.
ENDIF.
Regards,
Vasanti
Hi Anil,
1.Since for this bpartner(attribute of 0xyz) the data is not showing in maiantain master data of 0XYZ Infoobject.
a).Check what is the data loading problem in maintain master data level
2. how can i map the bpartner in transfer rules of 0XYZ?
a).If you are maintaining two source systems then use the option compound(0sourcesystem)
Regards,
samar reddy.k