cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI Call - Remote vs SE37 - Production Order Change

Former Member
0 Likes
401

Hi Experts,

I have a requirement to change data to Production Orders, sometime Header data, sometimes Operation data. I need to be able to do this via MII (12.2.4) so I need a remotely enabled BAPI.

I have found BAPI CO_SE_PRODORD_CHANGE which seems to be exactly what I need. I can run it via SE37 and it does exactly what I need it to do. But when I try to execute it remotely, via MII, I receive the following error: “Status object not assigned to status profile”.

I do know SE37 inherits some influence from the SAP GUI and isn’t exactly the same as remote execution, but I can’t figure out what is different or why it doesn’t work remotely.

From doing some Googling, looking in t-code OPJH I see that there is nothing defined for Status Profile Header or Oprtn Status Profile for the Order Type of my test Production Order. I do not know much about Status Profiles and how they relate to Order Types, but these order type were setup years ago by people that did know that detail so I have to assume that they are setup correctly.

I am thinking that there isn’t anything wrong with how the Order Type is setup. My guess is that when I execute the BAPI via SE37 that the SAP GUI is supplying some additional information that isn’t supplied when called externally…(perhaps a user default parameter?)

Would anybody be able to help direct me as to why I am unable to call that BAPI successfully remotely?

Thank you  for your time!

-Chris

Accepted Solutions (1)

Accepted Solutions (1)

former_member185280
Active Contributor
0 Likes

I think JCo doesn't support table type import parameters which that RFC has. At least not in older versions that 12 would be using. I don't know if thats been addressed in later versions.

Regards,
Christian

Former Member
0 Likes

Hi Christian,

Thank you very much for your reply!

I was able to get the process to work correctly from MII. Your response got me Googling in a different direction where I hit upon a mostly unrelated post. I almost didn’t continue reading then someone mentioned the Remove XML option within Link Editor.

What I found was that the BAPI inputs that I wasn’t using needed their XML removed

For example:

Target XPath: CO_SE_PRODORD_CHANGE.Request{/CO_SE_PRODORD_CHANGE/INPUT/IT_OPERATION}

Expression: <<REMOVE>>

By doing that it works great!

Thanks

-Chris

shaji_chandran
Participant
0 Likes

This message was moderated.

Answers (0)