Skip to Content
author's profile photo Former Member
Former Member

BAPI FHMI for Production Orders

Hello all,

I'am new to ABAP programming and try to solve a problem we face in our company with getting Production Order specific Informations out of the system. This Data is used for production purposes in an external system beside SAP. I managed already to get all necessary data out of the SAP system by creating RFC's, which are called with Python from outside. The only thing missing at the moment are the FHMI being used in the Production Order. I assume that i can get them by executing a BAPI call inside my ABAP script to BAPI_PRODORD_GET_DETAIL. There is a Parameter which needs to be passed called ORDER_OBJECTS of type BAPI_PP_ORDER_OBJECTS.

My problem is, since i never called a BAPI before, that all my tests didn't got a result back. I do not know if my parameter pass to the BAPI is not correct or the retrieving part when the BAPI is called. I only get a empty result back.

Maybe there is someone giving me an example how to do it the right way, or maybe a better way of getting the FHMI to a process-step in a Production Order.

I will be very thankful for any help provided.

Here my existing testcode:

REPORT ZTESTMAB1.

DATA: TEST LIKE BAPI_ORDER_PROD_REL_TOOLS OCCURS 0 WITH HEADER LINE,

MORDER_OBJECTS LIKE BAPI_PP_ORDER_OBJECTS OCCURS 1 WITH HEADER LINE.

MORDER_OBJECTS-PROD_REL_TOOLS = '1'.

CALL FUNCTION 'BAPI_PRODORD_GET_DETAIL'

EXPORTING

NUMBER = '619648'

ORDER_OBJECTS = MORDER_OBJECTS

TABLES

PROD_REL_TOOL = TEST.

write: / 'test'.

write: / TEST.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2007 at 02:08 PM

    Hi,

    at first glance I say try NUMBER with leading zeroes or use CONVERSION_EXIT...

    And there should be a BAPI-return-table that contains messages. Analize it!

    Good luck!

    Jo

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.