Application Development and Automation 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: 
Read only

material document linkage

Former Member
0 Likes
806

I'm a SAP newbie ...

I'm using function modules do get information from SAP. I get materials or documents using BAPI...

Question:

I have a material and want to know which documents are linked to this material (like I can do it in the SAP GUI). I have found the CO_DM_MAT_GET_DOC_LINKS. But this does not work via remote function call.

Do you have a hint which function module I can use instead?

Thanks

Thomas

1 ACCEPTED SOLUTION
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
711

Check if CV140_SELECT_DRAD_DOCUMENTS helps.

4 REPLIES 4
Read only

jitendra_it
Active Contributor
0 Likes
711

Hi Thomas,

If CO_DM_MAT_GET_DOC_LINKS is works for you then you can create a wrapper FM (Remote enabled) with same parameters  and call the CO_DM_MAT_GET_DOC_LINKS in wrapper FM.

Many Thanks,

Jitendra

Read only

0 Likes
711

Hi Jitendra,

 

Thanks for the response. I haven't created any wrapper FM yet. In my understanding I have to do it e.g. by the /nme_wizard?

We are not using SAP in our company. Some customers want to pump some of our data to their SAP system. So I don't want to manipulate or maintain their SAP server and want to use a more standard ways.

If I put 'mm03' in the SAPGui transaction field I get the material view. In the menu Additionals I find the menu item Document Data. If I click this item, I get the document (I use a German version, so I'm not sure if the mentioned menu labels are correct ...). So it seems this is a general requirement?

Actually I believe there must be a way to get these documents with the standard remote calls.
In which way would you look for these data?

Thanks in advance
Thomas

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
712

Check if CV140_SELECT_DRAD_DOCUMENTS helps.

Read only

Former Member
0 Likes
711

A friend told me about another function module - BAPI_DOCUMENT_GETOBJECTDOCS

thanks guys for your hints!

It solved my issue ...