Ws20000075 (release purchase orders)
Hello,
I want to use workflow ws20000075
In one machine it works.
In the other machine, which is the important it doesn't work.
I have the same setup I think.
The problem is that in the non working system, the releasecode is not transferred to the workflow. The releasecode is a mandatory parameter of the workflow, why it fails.
What can you do?
Where do define how parameters are transferred from SWEC to the workflow?
How can I debug it?
In the working machine many componenets are version 110, but in the non working machine it is version 200.
Best regards
Otto
Hi Otto,
In SWEC you only link a Change Document Object to an event of a business object, e.g. MATERIAL with BUS1001006->CHANGED.
That means the event CHANGED is always created if someone changes table entries of the Change Document Object MATERIAL.
If you want to see which tables belong to Change Document Object MATERIAL you have to call transaction SCDO.
Every field of each table in SCDO (for MATERIAL) can be transferred from the application to your event, but only if your event has a parameter that refers to the same table and the same field.
Check if the Workflow customizing is correct: SWU3.
And check if the setting in the MM-customizing for that workflow is right.
Regards,
Werner.
Similar Messages
-
Report for released purchase order
Hai guru's
this is second time but i did't get any good replay please consider this, i want any standard report for released purchase order,means(i released two backdated po today next day i verify the report ME2n,those po are not display, the system take only document date not released date, now i am using CDHDR through this i got the report. but it is big process, so once check this and send your valuable solution.
PrasadHi Krishna,
You could use Me2N with the dynamic selection coupled with normal selection screen.
In Dynamic selection(3rd icon in screen).....you can select for which company code, release indicator as released....and save it as default variant.
hope this should solve your query
Sk. -
Error release purchase order using transaction code me29n
i have warning error this purchasing document number cannot be released.
while i enter me29n t code.why?
then how to release purchase order using me29n t code?
can anyone answer this two questions.hi
i have warning error this purchasing document number cannot be released. while i enter me29n t code.why?
is the release strategy is triggred for the po ?? check thisin P order in me23n ,in header level check release strategy tab ,
then how to release purchase order using me29n t code? can anyone answer this two questions.
just go to me29n >release strategy tab here just click on the release button in front of the release code -
Z Report of Transaction ME28.(Release Purchase Order)
Dear all,
I want to make Z Report for the Transaction ME28 (Release Purchase Order).
I am facing problem of GUI status in my Z Report. Actually Report is not displaying like ME28.
and all the menu and function keys are also not coming properly.
So, pls suggest me good solution.
Thanks & Regards,
Sandip Sonar.I am attaching a copy of ME28. Please give it to your ABAP consultant.
He should be able to do the needful:
REPORT RM06EF00 NO STANDARD PAGE HEADING MESSAGE-ID ME.
Anzeigen Einkaufsbelege zur Belegnummer *
Tabellen *
INCLUDE FM06LTO1.
INCLUDE FM06LCFR.
**table added t16fc - SAPBY 6 Feb 98
TABLES: T16FG, T16FS, T16FV, T16FE, RM06B, T160B, T16FC.
DATA: BEGIN OF XEKPO OCCURS 100.
INCLUDE STRUCTURE EKPO.
DATA: END OF XEKPO.
*- Interne Tabelle der Zustände -
DATA: BEGIN OF ZUS OCCURS 10.
INCLUDE STRUCTURE T16FV.
DATA: END OF ZUS.
DATA: BEGIN OF ZUSKEY,
MANDT LIKE EKKO-MANDT,
FRGGR LIKE EKKO-FRGGR,
FRGSX LIKE EKKO-FRGSX,
END OF ZUSKEY.
Parameter und Select-Options *
PARAMETERS: P_FRGCO LIKE T16FC-FRGCO OBLIGATORY.
SELECT-OPTIONS: S_FRGGR FOR EKKO-FRGGR.
PARAMETERS: P_FRGSE LIKE RM06A-P_FRGSE DEFAULT 'X',
P_FRGRS LIKE RM06A-P_FRGRS,
P_FRGVO LIKE RM06A-P_FRGVO DEFAULT 'X',
set default to 'X' to show items as well - SAPBY
P_MITPOS AS CHECKBOX DEFAULT 'X',
set default to 'DEFAULT' - SAPBY
LISTU LIKE T160O-LISTU DEFAULT 'DEFAULT'.
SELECT-OPTIONS: S_BSTYP FOR EKKO-BSTYP,
S_EKORG FOR EKKO-EKORG,
S_EBELN FOR EKKO-EBELN MATCHCODE OBJECT MEKK
MEMORY ID BES,
S_BSART FOR EKKO-BSART,
S_EKGRP FOR EKKO-EKGRP,
S_LIFNR FOR EKKO-LIFNR MATCHCODE OBJECT KRED,
S_RESWK FOR EKKO-RESWK,
S_BEDAT FOR EKKO-BEDAT.
Hilfsfelder *
INCLUDE FM06LCEK.
DATA: XFRG1 LIKE EKKO-FRGZU,
XFRG2 LIKE EKKO-FRGZU.
DATA: XSELKB LIKE EKKO-BSTYP,
XSELKK LIKE EKKO-BSTYP,
XSELKL LIKE EKKO-BSTYP,
XSELKA LIKE EKKO-BSTYP.
FIELD-SYMBOLS: .
DATA: HFDPOS LIKE SY-FDPOS.
**workflow line added for workflow
DATA : LAST_USER_COMMAND LIKE SY-UCOMM.
Intitialisierung *
INITIALIZATION.
PERFORM ANFORDERUNGSBILD(SAPFM06L) USING XSELKB XSELKK
XSELKL XSELKA.
lines 67, 70 and 73 commented out -SAPBY
**listu = t160b-listu.
S_BSTYP-SIGN = 'I'.
S_BSTYP-OPTION = 'EQ'.
**if xselkb ne space.
S_BSTYP-LOW = 'F'.
APPEND S_BSTYP.
**endif.
IF XSELKK NE SPACE.
S_BSTYP-LOW = 'K'.
APPEND S_BSTYP.
ENDIF.
IF XSELKL NE SPACE.
S_BSTYP-LOW = 'L'.
APPEND S_BSTYP.
ENDIF.
IF XSELKA NE SPACE.
S_BSTYP-LOW = 'A'.
APPEND S_BSTYP.
ENDIF.
next two lines added to default the release code
IMPORT T16FC-FRGCO FROM MEMORY.
get parameter id 'ZRC' field t16fc-frgco.
P_FRGCO = T16FC-FRGCO.
Seketionsbild *
AT SELECTION-SCREEN ON LISTU.
PERFORM LISTUMFANG(SAPFM06L) USING LISTU.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FRGCO.
CALL FUNCTION 'HELP_VALUES_FRGAB'
EXPORTING
I_FRGOT = '2'
IMPORTING
E_FRGAB = P_FRGCO
EXCEPTIONS
OTHERS = 1.
AT SELECTION-SCREEN.
CALL FUNCTION 'ME_REL_CHECK_MANY'
EXPORTING
I_FRGOT = '2'
I_FRGCO = P_FRGCO
TABLES
T_FRGGR = S_FRGGR
T_T16FV = ZUS.
Beginn der Selektion *
START-OF-SELECTION.
NOT_FOUND = 'X'.
SET PF-STATUS 'FREI'.
SET TITLEBAR '001' WITH P_FRGCO.
PERFORM FRG_INIT(SAPFM06L) USING P_FRGCO P_MITPOS.
*- Lesen Belegköpfe -
SELECT * FROM EKKO APPENDING TABLE XEKKO
FOR ALL ENTRIES IN ZUS
WHERE FRGRL EQ 'X'
AND FRGGR EQ ZUS-FRGGR
AND FRGSX EQ ZUS-FRGSX
AND EBELN IN S_EBELN
AND BSTYP IN S_BSTYP
AND EKORG IN S_EKORG
AND LIFNR IN S_LIFNR
AND RESWK IN S_RESWK
AND BEDAT IN S_BEDAT
AND BSART IN S_BSART
AND EKGRP IN S_EKGRP
AND LOEKZ EQ SPACE.
IF P_FRGRS NE SPACE.
SELECT * FROM EKKO APPENDING TABLE XEKKO
FOR ALL ENTRIES IN ZUS
WHERE FRGRL EQ SPACE
AND FRGGR EQ ZUS-FRGGR
AND FRGSX EQ ZUS-FRGSX
AND EBELN IN S_EBELN
AND BSTYP IN S_BSTYP
AND EKORG IN S_EKORG
AND LIFNR IN S_LIFNR
AND RESWK IN S_RESWK
AND BEDAT IN S_BEDAT
AND BSART IN S_BSART
AND EKGRP IN S_EKGRP
AND LOEKZ EQ SPACE.
ENDIF.
SORT XEKKO.
*- Prüfen Freigabevoraussetzungen -
LOOP AT XEKKO.
MOVE-CORRESPONDING XEKKO TO ZUSKEY.
READ TABLE ZUS WITH KEY ZUSKEY BINARY SEARCH.
CHECK SY-SUBRC EQ 0.
XFRG1 = ZUS+9(8).
XFRG2 = XEKKO-FRGZU.
TRANSLATE XFRG2 USING 'X +'.
OVERLAY XFRG1 WITH XFRG2 ONLY '+'.
SEARCH XFRG1 FOR 'X'.
*---- Keine Freigabezuständigkeit -
IF SY-SUBRC NE 0.
DELETE XEKKO.
ELSE.
*---- Freigabestelle merken -
HFDPOS = SY-FDPOS.
ASSIGN XFRG2+SY-FDPOS(1) TO .
*---- Freigabe bereits erfolgt -
IF P_FRGRS EQ SPACE AND
EQ SPACE.
DELETE XEKKO.
ELSE.
*---- Freigabe noch nicht erfolgt -
IF P_FRGSE EQ SPACE AND
NE SPACE.
DELETE XEKKO.
ELSE.
*---- Freigabevoraussetzung fehlt -
IF XFRG1 CA '+' AND
P_FRGVO NE SPACE.
DELETE XEKKO.
ELSE.
EKKO = XEKKO.
PERFORM FRG_FEKKO_AUFBAUEN(SAPFM06L) USING HFDPOS.
ENDIF.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
SORT XEKKO.
*- Lesen Belegpositionen -
IF P_MITPOS NE SPACE.
SELECT * FROM EKPO APPENDING TABLE XEKPO
FOR ALL ENTRIES IN XEKKO
WHERE EBELN EQ XEKKO-EBELN.
ENDIF.
*- Ausgabe -
LOOP AT XEKKO.
EKKO = XEKKO.
PERFORM EKKO_ANSCHRIFT(SAPFM06L).
PERFORM EKKO_AUSGABE(SAPFM06L).
IF P_MITPOS NE SPACE.
LOOP AT XEKPO WHERE EBELN EQ EKKO-EBELN.
EKPO = XEKPO.
PERFORM FC_ME_READ_HISTORY(SAPFM06L).
PERFORM EKPO_AUSGABE(SAPFM06L).
ENDLOOP.
ENDIF.
ENDLOOP.
Ende der Selektion *
END-OF-SELECTION.
IF NOT_FOUND NE SPACE.
MESSAGE S260.
IF SY-CALLD NE SPACE.
LEAVE.
ELSE.
LEAVE TO TRANSACTION SY-TCODE.
ENDIF.
ENDIF.
WRITE: /(81) SY-ULINE.
OK-Code-Eingabe *
AT USER-COMMAND.
**workflow inserted 6 Feb 98 by SAPBY
PERFORM WORKFLOW_AT_USER_COMMAND.
INS GSB 18/02/2004 - check user approving is not user that create
PO
if sy-ucomm = 'FRGU' or sy-ucomm = 'FRGS'.
loop at xekko.
if xekko-ERNAM = sy-uname.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'
EXPORTING
TITEL = 'Error'
TEXTLINE1 = 'As the creator of this pruchase order you cannot approve it
as well !'
leave program.
endif.
endloop.
endif.
PERFORM USER_COMMAND(SAPFM06L).
Seitenueberschrift *
TOP-OF-PAGE.
PERFORM TOP(SAPFM06L).
TOP-OF-PAGE DURING LINE-SELECTION.
PERFORM TOP(SAPFM06L).
**& form workflow_at_user_command
TEXT
---> p1 text
<-- p2 text
FORM WORKFLOW_AT_USER_COMMAND.
IF LAST_USER_COMMAND IS INITIAL.
LAST_USER_COMMAND = SY-UCOMM.
ENDIF.
IF SY-UCOMM EQ 'ZURU'.
PERFORM TRIGGER_WORKFLOW.
ENDIF.
CASE SY-UCOMM.
WHEN 'BU'.
IF P_MITPOS EQ 'X'.
CHECK LAST_USER_COMMAND <> 'FRGR'.
PERFORM TRIGGER_WORKFLOW.
ELSE.
CHECK LAST_USER_COMMAND = 'FRGS'.
PERFORM TRIGGER_WORKFLOW.
ENDIF.
WHEN 'FRGU'.
PERFORM TRIGGER_WORKFLOW.
ENDCASE.
LAST_USER_COMMAND = SY-UCOMM.
ENDFORM.
**& form TRIGGER_WORKFLOW.
TEXT
---> p1 text
<-- p2 text
FORM TRIGGER_WORKFLOW.
DATA : BEGIN OF ZEKKO OCCURS 20.
INCLUDE STRUCTURE ZEKKO.
DATA : END OF ZEKKO.
DATA : BEGIN OF YEKKO OCCURS 20.
INCLUDE STRUCTURE ZEKKO.
DATA : END OF YEKKO.
DATA : WFBAN LIKE EKKO-EBELN,
WFERN LIKE EKKO-ERNAM.
CLEAR : WFBAN, WFERN.
MOVE-CORRESPONDING XEKKO TO YEKKO.
CONCATENATE YEKKO-FRGZU 'X' INTO YEKKO-FRGZU.
APPEND YEKKO.
MOVE-CORRESPONDING XEKKO TO ZEKKO.
*XEKKO-KZ = 'F'.
APPEND ZEKKO.
SELECT SINGLE KOKRS KOSTL
INTO (EKKN-KOKRS, EKKN-KOSTL)
FROM EKKN
WHERE EBELN = XEKKO-EBELN
AND EBELP = '00010'.
if sy-subrc <> 0. " Cost centres not mandatory at XXX
exit.
endif.
CALL FUNCTION 'Z_ME_REL_EVENT_EKKO'
EXPORTING
I_CALL_UPDKZ = 'F'
I_WFBAN = EKKO-EBELN
I_FRGCO = T16FC-FRGCO
I_ERNAM = SY-UNAME
I_UCOMM = SY-UCOMM
TABLES
I_EKKO_NEW = YEKKO
I_EKKO_OLD = ZEKKO.
ENDFORM. -
Need Message On change of Released Purchase order
Hi
I need to display message On Edit of released purchase order through ME22N or on click of edit in ME23N
Kindly suggest exits for the same.Hi Arun,
Create implementation for BADI: ME_PROCESS_PO_CUST. In this get the release status of PO and raise a message.
Regards,
Vijay -
Unprinted released purchase orders
Hello forum,
Is there any way from standard SAP (report) to watch, which purchase orders are released but they are NOT printed ?
Thanks in advance.Hi Stratos,
You can achieve this through Standard SAP. I am assuming that you have the print output, not set, as "send immediately when saving the application"
Please provide the list of P.O's which you are investigating in ME9F, provide the application as EF and Processing Status as 0 (Not processed)
This way, you will get the whole list of P.O's which have not been printed out, please note that outputs can only be processed on successfully released Purchase Orders.
Regards
Shailesh -
WS20000075 BUS2012 purchase order workflow doesnt handle rejection ??
Hi,
I need to understand how the std workflow template WS20000075 works for rejections and subsequent cancellations of rejections ?
I have seen that there is nothing in there .......it just completes the workflow, thats it
So if I have to arrange for any activities after rejection like notification to PO creator etc, I have to do it on my own - either change the present template or create new one for rejection ..... is it correct ?
Rejection is important event and its hard to belive theres nothing in the std PO release workflow given by SAP for it........so wanted to share experience......
its very urgent for me so any kind of inputs are appreciated, thank you very much in advance.
-RitaHi IA,
I have the WS65400030 but there is undefined step in there. It has to be TS65400035. So I cant use this.
Also when I traced back to check how I missed on this workflow template for BUS2012 I found that it doesnt show up in where used list done for BUS2012 in SWO1. coz thats how I had started with for the workflows of purchase order.
So this is a problem in the system right ? my version is ECC 6.0
thanks
-r -
Problem in releasing Purchase order(ZCAP and ZREP)
Hi,
I had made a purchase order and now i want to release in the tcode ME29N but the when i execute this tcode and fill the PO it gives the message that it cannot be released.
can any body provide me guideliens for it to solve this problem.First Go to ME23N Purchase ORder Display and In Header tab Check Whether Release Strategy tab is there.
If its there Check whether all the Charecteristics values you defined are meeting the Release strategy.
Then go to ME29N and Put tick mark on Set Release Option and Try again.
Regards,
Ashok -
Report of Released Purchase Orders
I am looking for a report that will give me all purchase orders that was released, and the person that released it.
Thank you.Go to "ME2C" (List Display of Purchasing Documents for Material Group). Press "Shift + F4" (show dynamic selections). Open folder "Purchasing Document Header". Scroll to item "Release indicator" and double-click on the item. The item will appear on the right and can now be used as selection criteria in the list display.
Alternatively
You may use 'ME28' to display and consequently release PO's that are subject for release. You need to indicate a particular release code and release group. Once this is executed, all PO's that are still pending for release by that release code will be displayed -
Change message status after release purchase order
Hi,
I'm a newbie in MM...
When a purchase order is created, the message status is not processed (yellow light) until the purchase order is released. Then the message is printed and the status changes to green light.
As far as I see, I can't find in the spro where is this customizing set or if there is a user-exit or badi for changing the message status depending on the release indicator.
Thanks in advance!
JenHi Jen,
Complete the condition record, for example, like this:
- Transaction: MN04
- Output Type: NEU
- Choose third option: Purchasing Output Determination Document Type
- Document Type: NB
- Function: VN (Vendor)
- Medium: 1 (Print output)
- Date/Time: 4 (Send immediately (when saving the application))
Select the line and press button "Communication". Complete the output device and mark the option "Print immediately"
So, when the PO is created the system generates the message with yellow status. Then, when the PO is released, the message status will be green
Regards,
Fernando -
Authority mail while releasing purchase order
Hello Experts,
My requirement is when the person release the purchase order(SAP-MM) of certain amount then email will trigger to the authorized person and once he approves then only PO will get released.
Is there any work of ABAP in this, If yes, How this functionality can be achieved through abap and what are the user exits I need to apply.
Please help.Yes It is possible. You have to write an enhancement in Program LMEGUICJI after get PO has been saved (committed) .
her you will get all the info about the PO after being Commit Work executed After ->POST.
You will also get the release strategy information using the FM "BAPI_PO_GETRELINFO ". Based on The release strategy and amount in PO you can send mail using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1".
Hope this will solve your purpose. -
Hi,
we are facing problem in TCode ME29N when print the Purchase Order where we are using Output Type Developed ZBTM.Message Show You are not authorized to change release document. How to solve this problem.
amanHi,
When you get the error, access transaction SU53, or direct via /nsu53. This will show execatly what the problem is and what authorisation object is causing the issue.
Thanks. -
Release purchase order procedure for Purchasing Organization,
I am trying to customize a Release procedure order for Purchasing Organization,
Characteristic with table EKKO and field EKORG, for value I have specified a char. value ZA01 , which is the name of my purchase organization, but all purchasing organization are selected anyway!
On value assignment 'single value' and number of chars 4, no mask.
I have maintained class, release codes, etci hope you have done all the settings for the release of purchase order. use CEKKO table for characteristic and also define your purchase organization in your release strategy.
Edited by: Vimalanathan.A on Feb 16, 2011 12:12 PM -
Hello, everybody, help me with quota arragement and release Purchase Order
Hello everybody:
When maintain Quota arrangement today, a warning message poped up saying Quota arrangement for Material X10002 in plant 1855 not active. but X10002 does exist, I can maitnain it with MM02.
Why this happened? everyone.
what's more, all purchase order can not be released with me29n , but ok with me28. why is it so ? thank you in advance, everybody. couldn't thank you more.Hi,
Regarding your 2 nd Query.
ME29N - Indidual Release
Suppose when my PO is subjected to three release code, this transaction gives me an option to release the three levels altogether by the highest level ( ie the three level release will be able to perform the release if R1 and R2 have not released )
ME28 - Collective Release.
This needs to be released by inidviuals using their release code independently thereby the release is possible only with the three levels releases the same.
The names given to transaction codes is a little bit confusing unless until you are clear about the fucntionality.
Regards,
DilliB -
Printing of non released purchase orders in ME9F
Dear Friends,
In the standard ME9F transaction we need to print the purchase orders which are not released. But that standard transaction is displaying only the purchase orders which are released. Is there any way to display the purchase orders which are not released in the ME9F output?
Any help will be highly appreciated.
Thanks a lot in advance.Access method U (berkeley protocol) would require a printer server which we do not want.
We defined a new device, LOCM that has the procedure M (email to receiver/owner). Ideally, this would send an email with a PDF copy of the purchase order. However, in the spool request the receiver is ALWAYS defined as WF-BATCH. Even if the PO creator is a different user ID, the receiver would be user WF-BATCH still.
Does anyone have an idea how to remove the receiver part in the spool request attributes? Or simply replace that with the owner of the spool?
Maybe you are looking for
-
Alv subtotals and grand total for a field
Hi friends, I Have an internal table ITAB1 in that i have a senario as below. In my GRID display iam getting values in the layou as follows BUKRS = 1000 LIFNR MATNR STCST 100 abc 500,00 100 pqr 400,0
-
How to create a connection key for an intranet
I'm trying to create a connection key for a client of ours to update a page on their intranet. The intranet is only available internally. How do I go about doing this?
-
How do I add a password protection to my email on my iPAD? It just pops up now.
How do I add password protection to my email on my ipad? My email just pops up now.
-
Upload a jar file in remote Weblogic server using wlst
Is there a way to upload a jar file to a specific location on remote weblogic server using wlst? This is my scenario - I need to upload aspectjweaver.jar to the remote server. This needs to be done before weblogic startup, as weaving takes place duri
-
HI Can anybody plz send the T.codes of Project wise profit & loss accounts.