BAPI for changing Work order user status in IW32
Hello Experts,
I am getting Same Problem in updating status via BAPI, BAPI_ALM_ORDER_MAINTAIN. Its not giving any error but even not update status.
I know i can use this for changing the user status also but not sure how to carry out things.
I used this code.
fi_methods-method = 'SAVE'.
APPEND fi_methods.
fi_methods-refnumber = 1.
fi_methods-objecttype = 'USERSTATUS'.
fi_methods-method = 'CHANGE'.
fi_methods-objectkey = '002000002453'.
APPEND fi_methods.
fi_userstatus-user_st_text = 'COMM'.
fi_userstatus-user_langu = 'EN'.
fi_userstatus-change_event = ' 01 '.
APPEND fi_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = fi_methods
it_userstatus = fi_userstatus
return = fi_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Above code I am using and there the message comes like
T ID NUM MESSAGE
S IW 080 Order saved with number 2000002453
S IWO_BAPI2 110 BAPI control was ended
can any on know what is wrong in this? please help if having knowledge.
Thank You,
Jahnavee Trivedi
I am getting Same Problem.
fi_methods-method = 'SAVE'.
APPEND fi_methods.
fi_methods-refnumber = 1.
fi_methods-objecttype = 'USERSTATUS'.
fi_methods-method = 'CHANGE'.
fi_methods-objectkey = '002000002453'.
APPEND fi_methods.
fi_userstatus-user_st_text = 'COMM'.
fi_userstatus-user_langu = 'EN'.
fi_userstatus-CHANGE_EVENT = ' 01 '.
APPEND fi_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = fi_methods
it_userstatus = fi_userstatus
return = fi_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Above code I am using and there the message comes like
T ID NUM MESSAGE
S IW 080 Order saved with number 2000002453
S IWO_BAPI2 110 BAPI control was ended
can any on know what is wrong in this? please help if having knowledge.
Thank You,
Jahnavee Trivedi
Similar Messages
-
Function module for changing Work order user status in IW32
Hi,
I want to change the work order user status in IW32 using ABAP.
Is there any function module to do so or any other way? I have tried using BDC but this does not work.
Please suggest.
Regards,
Naba
Edited by: n. saha on Nov 5, 2008 6:46 AMI am getting Same Problem.
fi_methods-method = 'SAVE'.
APPEND fi_methods.
fi_methods-refnumber = 1.
fi_methods-objecttype = 'USERSTATUS'.
fi_methods-method = 'CHANGE'.
fi_methods-objectkey = '002000002453'.
APPEND fi_methods.
fi_userstatus-user_st_text = 'COMM'.
fi_userstatus-user_langu = 'EN'.
fi_userstatus-CHANGE_EVENT = ' 01 '.
APPEND fi_userstatus.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = fi_methods
it_userstatus = fi_userstatus
return = fi_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Above code I am using and there the message comes like
T ID NUM MESSAGE
S IW 080 Order saved with number 2000002453
S IWO_BAPI2 110 BAPI control was ended
can any on know what is wrong in this? please help if having knowledge.
Thank You,
Jahnavee Trivedi -
Bapi for change work center data
HIi All
I need BAPI to change work center data for all categories and work center change transactions .....IR02 ,CNR2,CR02.
Thanks in advance .Hai,
Try the fm CRAP_WORKCENTER_CREATE
BAPI_BUS2054_CHANGE_MULTI
CRAP_WORKCENTER_CREATE
Regards,
Venkat -
Userexit for updating sales order user status based on PO
Hi.
My clients requirent is
Sales order user status should get updated based on production order creation,GR for PO creation etc.
Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
Can you please suggest me some userexits in PP for this requirement?
I am a SD Consultant and not having much idaes about PP
Thanks
Nishahi,
if you are not going to update it in the SO..
then you need different exits as those are different transactions. -
Userexit for updating sales order user status based on Production Order
Hi.
My clients requirent is
Sales order user status should get updated based on production order creation,GR for PO creation etc.
Basically depending on PO & GR For PO,various user stauts in sales order should get updated.
Can you please suggest me some userexits in PP for this requirement?
I am a SD Consultant and not having much idaes about PP
Thanks
Nishahi,
if you are not going to update it in the SO..
then you need different exits as those are different transactions. -
Change sales order user status
Hello experts,
I'm trying to update the user status with the following code without success:
DATA : LIT_STATUS_COMT TYPE CRMT_STATUS_COMT,
WA_STATUS_COMT LIKE LINE OF LIT_STATUS_COMT,
LIT_FIELD_NAMES TYPE CRMT_INPUT_FIELD_NAMES_TAB,
WA_INPUT_FIELD_NAMES LIKE LINE OF LIT_FIELD_NAMES.
SELECTION-SCREEN BEGIN OF BLOCK AAA.
PARAMETERS: P_GUID TYPE CRMT_STATUS_COM-REF_GUID,
P_STAT TYPE CRMT_STATUS_COM-STATUS.
SELECTION-SCREEN END OF BLOCK AAA.
CLEAR WA_STATUS_COMT.
WA_STATUS_COMT-REF_GUID = P_GUID.
WA_STATUS_COMT-REF_KIND = 'A' .
WA_STATUS_COMT-STATUS = P_STAT. " Pass the user status
WA_STATUS_COMT-USER_STAT_PROC = 'ZOR00001'. " Value for the User Status Profile.
WA_STATUS_COMT-ACTIVATE = 'X'.
INSERT WA_STATUS_COMT INTO TABLE LIT_STATUS_COMT.
WA_INPUT_FIELD_NAMES-FIELDNAME = 'ACTIVATE'.
APPEND WA_INPUT_FIELD_NAMES TO LIT_FIELD_NAMES.
CALL FUNCTION 'CRM_STATUS_MAINTAIN_OW'
EXPORTING
IT_STATUS_COM = LIT_STATUS_COMT
CHANGING
CT_INPUT_FIELD_NAMES = LIT_FIELD_NAMES
EXCEPTIONS
NOT_ALLOWED = 1
ERROR_OCCURRED = 2
WARNING_OCCURRED = 3
OTHERS = 4.
DATA: LT_OBJECTS_TO_SAVE TYPE CRMT_OBJECT_GUID_TAB,
LS_OBJECTS_TO_SAVE LIKE LINE OF LT_OBJECTS_TO_SAVE.
LS_OBJECTS_TO_SAVE = P_GUID.
APPEND LS_OBJECTS_TO_SAVE TO LT_OBJECTS_TO_SAVE.
CALL FUNCTION 'CRM_STATUS_SAVE_OW'
EXPORTING
IT_HEADER_GUID = LT_OBJECTS_TO_SAVE
best regards,
Ronen.R.R,
I already tried that without success:
INCLUDE CRM_STATUS_CON.
INCLUDE CRM_LOG_STATES_CON.
SELECTION-SCREEN BEGIN OF BLOCK AAA.
PARAMETERS: P_OBJNR TYPE CRM_JSTO-OBJNR,
P_STAT TYPE CRM_JEST-STAT.
SELECTION-SCREEN END OF BLOCK AAA.
START-OF-SELECTION.
CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN_OW'
EXPORTING
* CHECK_ONLY = ' '
OBJNR = P_OBJNR
USER_STATUS = P_STAT
* SET_INACT = ' '
* IV_REF_KIND =
* IV_OBJECT_TYPE =
* IV_NO_1O_MAINTAIN =
* IMPORTING
* STONR =
* EXCEPTIONS
* OBJECT_NOT_FOUND = 1
* STATUS_INCONSISTENT = 2
* STATUS_NOT_ALLOWED = 3
* OTHERS = 4
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
* IMPORTING
* RETURN =
any other suggestions?
Ronen. -
LSMW issue using BAPI for changing Purchase Order G/L Account
Wonder if anyone can help as I'm tearing my hair out!!
Have used LSMW lots of times using the transaction recorder, but tried using a BAPI as we have a mass update to do of G/L Accounts for Purchase Orders and it seems the tidiest and most efficient way to do it.
Got my LSMW project working as a test by changing the Short Text on a purchase order, this works fine. However, when I add the Account Assignment details in (Structure E1BPMEPOACCOUNT and E1BPMEACCOUNTX) everything seems to run fine, the IDOC posts and gives message 'Document xxx changed'. Yet when I look into the order it hasn't actually changed the G/L.
If I go into the purchase order in change mode in another session and run the LSMW again it recognises the purchase order is locked so it seems to be doing everything right, just not updating the G/L Account field. Anyone got any ideas ? It updated the short text fine so I'm sure everything is set up OK but for some reason it ignores the G/L that I upload. Anything relating to the Account Assignment (Unloading Point, GR, Cost Center) just gets ignored if I try and upload a change.
I seem to be so close it seems a shame not to be able to get it sorted !!!
Thanks,Helen Smith wrote:
HI Praveen,
>
> Thank you very much for your response. I tested the BAPI as per yor instructions and the return message comes back 'Eng & other PO xxxx changed' so it seems to indicate a success message again (like the LSMW does) but the actual data doesn't update.
>
> I thought I'd found it as I searched OSS and found note 0001382965 which seemed exactly my problem. I imported it and applied it but yet I still get the same issue - LSMW runs, says app doc posted and purchase order has been saved but no Account Assignment field will update.
>
> So it seems as if it's the BAPI not doing what it should - so I'm considering logging with SAPNET just to see if they can help as getting desperate with this one now! Felt sure I had it sorted when I found that note!
>
> Thanks
>
> Helen
>
> ** I should add I also ran the test above altering something in the item detail (the short text) - and that worked and updated. So it still seems to point to the Account Assignment part of the BAPI not updating.
>
> Edited by: Helen Smith on Nov 2, 2010 4:35 PM
Hi Helen,
Just wondering whether you have found solution to your issue.
We also encounter the same issue and have implemented the note without any positive result.
Please share if you found the solution.
Thank you.
Abraham -
Bapi for changing internal order settlement rules
Hi
I'm looking for BAPI to add/ modify settlement rules in internal order (like in tc KO02). BAPI_ALM_ORDER_MAINTAIN seems not working, and there's only BAPI_INTERNALORDER_CREATE and GETITEM in internal order group ( there's no MAINTAIN ).
Is there another BAPI to do this? of FM?
regards
Wojciech.Thanks for help but this links points to discussions abut creating internal order. I want to change one. BAPI_INTERNALORDER_CREATE does not allow to change orders ( i've just tested it.)
regards
wojciech -
BAPI to change Work order operation details
Hi ,
I have a requirement to change the operation work center of the service order . I am using the BAPI_ALM_ORDER_MAINTAIN . Could anyone let me know how the parameters i_methods and i_operation, i_operationup needs to be passed , what values need to be filled in them. Basically I am not sure about how the object key for the i_operations table is built.
Regards,
Prabaharan.GHi,
I used the below function module parameters as below the change operation work center of maintenance order,
CLEAR: I_METHODS[], I_HEADER[], I_HEADERUP[],
I_OPERATION[], I_OPERATIONUP[].
CLEAR: V_OBJKEY.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = P_V_AUFNR
IMPORTING
OUTPUT = P_V_AUFNR.
I_METHODS-REFNUMBER = '000001'.
I_METHODS-OBJECTTYPE = 'OPERATION'.
I_METHODS-METHOD = 'CHANGE'.
I_METHODS-OBJECTKEY = P_V_AUFNR.
APPEND I_METHODS.
I_METHODS-OBJECTTYPE = ' '.
I_METHODS-METHOD = 'SAVE'.
APPEND I_METHODS.
I_OPERATION-ACTIVITY = P_V_VORNR.
I_OPERATION-WORK_CNTR = P_V_WORK_CENTER.
APPEND I_OPERATION.
I_OPERATIONUP-ACTIVITY = 'X'.
I_OPERATIONUP-WORK_CNTR = 'X'.
APPEND I_OPERATIONUP.
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
IT_METHODS = I_METHODS
IT_HEADER = I_HEADER
IT_HEADER_UP = I_HEADERUP
IT_HEADER_SRV =
IT_HEADER_SRV_UP =
IT_USERSTATUS =
IT_PARTNER =
IT_PARTNER_UP =
IT_OPERATION = I_OPERATION
IT_OPERATION_UP = I_OPERATIONUP
IT_RELATION =
IT_RELATION_UP =
IT_COMPONENT =
IT_COMPONENT_UP =
IT_TEXT =
IT_TEXT_LINES =
EXTENSION_IN =
RETURN = I_RETURN
ET_NUMBERS =
READ TABLE I_RETURN INTO WA_RETURN WITH KEY TYPE = 'E'.
IF SY-SUBRC NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WAIT UP TO 1 SECONDS.
ELSE.
MOVE P_V_AUFNR TO WA_MSG_LOG-AUFNR.
MOVE P_V_VORNR TO WA_MSG_LOG-VORNR.
MOVE WA_RETURN-MESSAGE TO WA_MSG_LOG-MESSAGE.
APPEND WA_MSG_LOG TO I_MSG_LOG.
CLEAR: WA_MSG_LOG.
ENDIF.
Regards,
Prabaharan.G -
BAPI for PM Notification system/user statuses (given OBJECT_NO)?
Hi guys,
I am using the BAPI_ALM_NOTIF_GET_DETAIL, so in OBJECT_NO field of the exported table NOTIFHEADER_EXPORT it contains the number that later can be used for se16 -> JEST.
My question is if there is a BAPI that can provide me with the User and System statuses (integer and string values) of this PM Notification, given its OBJECT_NO.
Any hints & tips highly appreciated & rewarded with points.
Please consider that I am still a newbie
Best Regards,
LaloI guess it is the workitem I am referring to.
The body of the email in my workflow message is:
Location &WF_BUS2038.LOCATION&
Description: &WF_BUS2038.MAINTENANCEORDER.SHORTTEXT&
Priority:&WF_BUS2038.PRIORITY&
Notification Number: &WF_BUS2038.NUMBER&
Notif. Date:&WF_BUS2038.NOTIFICATIONDATE&
Reported by: &WF_BUS2038.REPORTEDBY&
Priority Type: &WF_BUS2038.PRIORITYTYPE&
The content in the document in my business workplace is as follows:
Location FM-KINP
Description:
Priority:3
Notification Number: 7000568
Notif. Date:30.03.2009
Reported by: MDEMECHA
Priority Type: FC
I will try to to create the sub-object to get the problem type. Thanks. -
Changin work order system status via FM BAPI_ALM_ORDER_MAINTAIN
Hello,
I've succeeded to change work order user status via FM BAPI_ALM_ORDER_MAINTAIN.
Is it also possible to change the system status with the same FM?
Thanks
MosheCheck STATUS_CHANGE_INTERN_MULTI & STATUS_CHANGE_INTERN
-
QM Orders - Funktions/BAPI for Changing
Dear all,
I have to mass change the Profit Center and the Cost Center in the QM Orders.
I can not find a function or BAPI to change the data. Can anybody give me a tip - please.
Thanks for help.
Best regards
RomanDear Roman
Please check this link. I couldnt find anything to change
Link: [Bapi for changing internal order master data]
My recommendation will
1) Write a program to change the costcenter and profit center in the table
2) You can replace the existing order by creating new QM order using the BAPI BAPI_INTERNALORDER_CREATE
Regards
Gajesh -
BAPI for Changing Status of Internal Order Tcode : KO02
Hello Everybody ,
I want to change System status of Internal Order Tcode : KO02 .
I.e if status are REL ( Released ) then I want to make it as CLSD ( Closed ) and Vice Versa .
In AUFK ,
AUFK-PHAS2 = REL (RELEASED )
AUFK-PHAS3 = CLSD ( Closed )
this field we need to set as 'X' as per our requriment .
I used FM " ALE_INTERNALORDER_DB_CHANGE " to changing this field .
but after excution this FM , value of this field is changed but when i see the same order in KO03 this is not reflecting but value in AUFK is changed .
this should not be happend if the value is chage in Table AUFK then must be reflect in KO03 .
I also used BAPI_INTERNALORDER_SAVEREPLICA for Change Internal Order but it's no use ....
Please suggest me any BAPI as per requriment .
ASAP
Regards,
SandeepHi ,
You are right .... I want to chage the status of internal order if CLSD then it should be REL and vice-versa .
and things I am talkinG about is that 'X is maintained in table AUFK-PHAS1 = 'X for REL and AUFK-PHAS3 = 'X' for CLSD .
So my point is that is there any BAPI of FM available for changing the status of Internal Order .
from CLSD to REL and from REL to CLSD ?
i used this FM : ALE_INTERNALORDER_DB_CHANGE and
BAPI : BAPI_INTERNALORDER_SAVEREPLICA But not getting output .
Regards,
Sandeep -
Work orders and updating user status (via IW32)
Hello All,
I was given a design to create a program that will retrieve all open work orders. The program needs to check on all the purchase orders for that work order to check if order quantity matches the received quantity and the invoice quantity. If it matches, I will do an IW32 to change the user status to 'AIP' (All Invoices Paid). If there are no invoices or purchase orders, I will again, do an IW32 to change the user status to 'AIP'.
And since this is my first time to work on a PM ticket, I'm not very familiar with the tables being used. I've tried looking for a list of PM tables. One table I got is AUFK (Order Master Data). I searched through the table and it has the fields for Sales Order Number (KDAUF) and Item Number (KDPOS). Is this the Purchase Order related to the work order? Also, is there a way I can see or verify it through a transaction? I tried looking into transaction IW33 but I couldn't find any Purchase Order Number there. Also, how do you know if a work order is open or not? Is there a field that indicates it?
I was thinking if there are any BAPI's I can use to change a work order's user status instead of doing a CALL TRANSACTION 'IW32'? I saw a function module, RFC_CHANGE_PM_ORDER, that does a remote function call to IW32 but this has dialogs. I'd appreciate any input.
Many thanks in advance!
Regards,
KristineHi
You can use the BAPI - BAPI_ALM_ORDER_MAINTAIN to maintain orders.
Given below few order related tables
AUFK -Production order headers
AFIH -Maintenance order header
AUFM -Goods movement for prod. order
AFKO -Order header data PP orders
AFPO -Order item
RESB -Order componenten
AFVC -Order operations
AFVV -Quantities/dates/values in the operation
AFVU -User fields of the operation
AFFL -Work order sequence
AFFH -PRT assignment data for the work order(routing)
JSTO -Status profile
JEST -Object status
AFRU -Order completion confirmations
This may help you.
Thanks & Regards,
Govind. -
Creating check on officers who can change a sales order - User Status
The user needs to create a check on persons who can change (User Status) on the sales order created.
The sales order are created by a group of people. These group of people can not be allowed to change the sales order - User Status(In header Detail).
Only a second level user users should be allowed change this user status.
Can it be done at configuration level. Or should we use an Exit?
Thanks in advance.Hi Sunoj,
I never have used this auth. objects, but if you want to set restrictions on some users, search before in auth. objects. As I told you, you can use the tcode SU24 for this purpose. Do the selection, see the result, try it with tcode PFCG and check it.
If you can do something with customizing tools or other standard tools (as authoritation tools) avoid the use of enhancements, BADI, BTE'S and so on. If you don't find the solution, then go to userexits.
I hope this helps you
Regards
Eduardo
Maybe you are looking for
-
BATTERY DRAINS SINCE AFTER THE UPGRADE TO OS 10.2.1.3442 ON Q10
It's been over three weeks now since I upgraded my os to 10.2.1.3442 and ever since then my battery drains like mad.I constantly use device monitor to manage runing applications and even when most apps are idle and PIM is as low as 0.5%,my battery @9
-
I just bought a WD external HD but it is formated for windows. It says the drive has to be reformatted for Mac. How does one do that?
-
I make a jar file then i lunch that jar with java -jar FileName.jar i have thi error Exception in thread "main" java.util.zip.ZipException: Accesso negato at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:105)
-
I restored my ipod and i now have 35.66GB of other data on my ipod and it only sinked my music that i bought on itunes how do i fix this? i have an ipod 5 with ios 7.1.2. ive tried restarting my computer restarting my ipod and restoring it. i also tr
-
Hi, unfortunately I've had no luck with attempting to fix my FF install. Here is what I've done so far. * Multiple clean installs, including removal of all files/history. Relocating any remaining directory files. * Update NVidia video driver package,