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

User status in IW31 transaction code

Former Member
0 Likes
1,020

Hi experts,

I am doing BDC for IW31 tcode.

now i want to set the user status to each Operation.

i know that we can use status_change_extern.

Please tell me what is the object number to pass.

how can i find the object number in this case.

Please help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
845

If you are using BDC to create a maintenance Order,then you can simulate the user input on the screen to put an user status on order. In that case you don't need to know object number and also the object number will not be available at that time because order is not created yet.

You can use the function module status_change_extern only after the BDC is complete and order is posted. In this case, you have to determine the order number of newly created order ( from message table of call transaction) and then read table AUFK to get the AUFK-OBJNR.

If you are using BDC to create a maintenance Order,then you can simulate the user input on the screen to put an user status on order. In that case you don't need to know object number and also the object number will not be available at that time because order is not created yet.

You can use the function module status_change_extern only after the BDC is complete and order is posted. In this case, you have to determine the order number of newly created order ( from message table of call transaction) and then read table AUFK to get the AUFK-OBJNR.

3 REPLIES 3
Read only

Former Member
0 Likes
845

you can get OBJNR(Object number) from AUFK table

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
845

It is a concatenation of "OR" and the order number...



Data: xobjnr type jcds-objnr.

  xobjnr+0(2) = 'OR'.
  xobjnr+2(20) = aufk-aufnr.

Please make sure to award points and mark your post as solved. Thanks.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
846

If you are using BDC to create a maintenance Order,then you can simulate the user input on the screen to put an user status on order. In that case you don't need to know object number and also the object number will not be available at that time because order is not created yet.

You can use the function module status_change_extern only after the BDC is complete and order is posted. In this case, you have to determine the order number of newly created order ( from message table of call transaction) and then read table AUFK to get the AUFK-OBJNR.