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

BAPI_MATERIAL_GET_PRODUCTHIER truncates text fields

paul_pendleton
Participant
0 Likes
1,147

I have confirmed with SAP that the BAPI_MATERIAL_GET_PRODUCTHIER bapi truncates the values for the text fields NODE_TEXT and TEXT used in the NODE_LIST structure. It is supposed to be 40 in length but they have placed the text fields that are defined as 20 in length in the structure. They also said there is no other bapi that would give the right size fields to me. Does anyone know of a FM that would give me the same thing? I need everything that is returned in the BAPI. I am thinking about copying the bapi to a FM and making modifications the the newly created FM to get it to work for me. Any help would be appreciated.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
840

Paul,

You are correct.

You would now need to create a custom object. You can create a FM or a custom ZBAPI. I would suggest cloning the BAPI_ into a ZBAPI_

Paul,

You are correct.

You would now need to create a custom object. You can create a FM or a custom ZBAPI. I would suggest cloning the BAPI_ into a ZBAPI_

4 REPLIES 4
Read only

Former Member
0 Likes
841

Paul,

You are correct.

You would now need to create a custom object. You can create a FM or a custom ZBAPI. I would suggest cloning the BAPI_ into a ZBAPI_

Read only

0 Likes
840

Thanks John. This is what I ended up doing. Though I was trying to get out of doing anything. I happen to think SAP should have fixed the code that is wrong or at the very least supplied a new BAPI or new version of the BAPI that is correct. I have copied the bapi and made some changes to an include file that was copied and it works now. Thanks for your input.

Read only

Former Member
0 Likes
840

Are you looking for a rfc function module or any function module? Take a look at RV_PRODUKTHIERARCHIE* function modules and see if they suit your purpose.

Read only

0 Likes
840

Srinivas, These are some good FM. I had already copied the BAPI when you sent this. It looks like there is one that does return the text correctly. Not sure if there were other fields that the bapi sent back and the FM did not. I quit looking at it once the copied BAPI was working. Thanks for your response.