Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module(FM) or Table where I can find data related to Vendor on IW31, IW32

alisonv
Explorer
0 Kudos

I need a Function Module or Table to retrieve the info related to partner as shown below:


I've tried RH_MACO but no data was returned

1 ACCEPTED SOLUTION

mig1
Participant

Vendors (General) equals the search help KREDA. Behind this is the database view M_KREDA that contains the fields you see.

You can get the values (and provide filters) via BAPI_HELPVALUES_GET.

7 REPLIES 7

aoyang
Contributor

IHPA(Plant Maintenance: Partners) stores the partner assigned to the order. To search this table, enter your order number into AUFK-AUFNR and get the OBJNR(Object number). Then use that object number to search IHPA-OBJNR.

If you need to get the partner master data of that vendor, use IHPA-PARNR(partner number) to search LFA1-LIFNR and LFA1 contains master data such as address, names, etc.

0 Kudos

The table LFA1 contais de data I need but is here a FM to read this info ?

0 Kudos

alisonv you can use BAPI_VENDOR_GETDETAIL for example. Pass the vendor number of IHPA-PARNR to vendorno parameter and the LFA1 data is returned on generaldetail parameter.

RAHEEL_BABAR
Active Contributor
0 Kudos

Please check

BAPI_ALM_ORDER_GET_DETAIL

SE37

0 Kudos

I need an FM to read all data from Vendor.

mig1
Participant

Vendors (General) equals the search help KREDA. Behind this is the database view M_KREDA that contains the fields you see.

You can get the values (and provide filters) via BAPI_HELPVALUES_GET.

raymond_giuseppi
Active Contributor
0 Kudos

What do you call "all data from vendor", it could contain every maintenance views related to this vendor as well as whole history of the vendor, such as purchase orders, purchase info records and the like?

Did you already look at FM of group IPAR such as PM_PARTNER_READ or PM_PARTNER_READ_MASTER_DATA?