Material Master workflow - how to use a BAPI?
Hi,
I need some help with a material master workflow.
My requirement is to automate some changes to the material master as steps in the workflow, they are:
Set the Cross plant material status
Set the material deletion flag
I see that the BAPI SAVEDATA is available as a method of BOR BUS1001006. I have created a task with this method but I cannot work out how to automate the changes to the material in the workflow using it?
Has anyone used this BAPI method in a workflow before, how do I automate the changes to the material using it? or is there another way to make changes to the material as a background step in my workflow?
Many thanks,
Neil
All,
thanks ever so much for all your input... I have fixed the problem and it was obscure!
Firstly my binding was wrong... I should not have bound the clientdata and the clientdatax
since the settings I was trying to default (material status an del flag) from the master task were actually being overwritten with this binding. bit of a schoolboy error that one.
Secondly I created 1 brand new task and reused 1 old task for the purposes of setting the material status and the deletion flag respectively.
I managed to get the first one working this morning by removing the binding, the second one still errored with the message about source and target structures being different... which got me thinking, so I created a brand new task for setting the deletion flag and ... it worked!
So why? ... then I realised.
We just upgraded to EHP7 and this workflow existed prior to EHP7. I copied the workflow and edited it for my new business requirements. Reading some of the release notes it turns out the structures have changed and there were conversion routines for fixing them.
All sorted now!
Similar Messages
-
How to Create material master workflow
Hi All,
Can anybody tell me how to create material master workflow?
i need to customize the workitem for creating data in different views in MM01 transaction with restriction to particular user.
Regards,
PritiHi,
This link is to display a material.My requirement is to create a workflow which will allow a responsible person to enter data for specific department data e.g Purchase,Accounting etc.Initially anyone can create data using basic data1 and basic data2 views.After this my workflow will be triggered and it will go to next person who is responsible to enter Purchase data and then Accounting data.
Plz help me to create different views with respect to person.
Thanks in advance. -
How to Use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA
Hi ,
How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
May i know what are the input parameters & fields mandatory
for each Table structures ct_data , ct_datax , it_descript , it_longtext.
Can any one explain me Step by Step Process.
B'cos i tried with below code. Equipment is not getting created.
wa_itab-equipment_ext = '000000000100000001'.
wa_itab-descript = 'Test 2 -> Lube Oil Pump'.
wa_itab-text_language = 'EN'.
wa_itab-sdescript = 'Short Description'.
APPEND wa_itab TO it_itab.
CLEAR wa_itab.
LOOP AT it_itab INTO wa_itab.
ct_data-ta_guid = '000000000000000001'.
ct_data-equipment_ext = wa_itab-equipment_ext.
ct_data-descript = wa_itab-descript .
ct_data-valid_date = sy-datum.
ct_data-equicatgry = 'M'.
APPEND ct_data.
CLEAR ct_data.
ct_datax-ta_guid = '000000000000000001'.
ct_datax-equipment_ext = 'X'.
ct_datax-equipment = 'X'.
APPEND ct_datax.
CLEAR ct_datax.
it_descript-ta_guid = '000000000000000001'.
it_descript-text_language = wa_itab-text_language.
it_descript-descript = wa_itab-sdescript .
APPEND it_descript.
CLEAR it_descript.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'LTXT'.
it_longtext-text_line = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'aaaaaaaaaaaaaaa'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'bbbbbbbbbbbb'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'cccccccccccccccc'.
APPEND it_longtext.
CLEAR it_longtext.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
call BAPI-function in this system
CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
TABLES
ct_data = ct_data
ct_datax = ct_datax
it_descript = it_descript
it_longtext = it_longtext
return = return
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE : 'Successful'.
ENDIF.
IF NOT return IS INITIAL.
LOOP AT return.
IF return-type = 'A' OR return-type = 'E'.
WRITE : 'Error'.
ENDIF.
ENDLOOP.
ENDIF.
REFRESH return.
ENDLOOP.
Regards
SUrendarHi ,
How to use PM BAPI for equipment Master upload : BAPI_EQUIPMENT_SAVEREPLICA.
May i know what are the input parameters & fields mandatory
for each Table structures ct_data , ct_datax , it_descript , it_longtext.
Can any one explain me Step by Step Process.
B'cos i tried with below code. Equipment is not getting created.
wa_itab-equipment_ext = '000000000100000001'.
wa_itab-descript = 'Test 2 -> Lube Oil Pump'.
wa_itab-text_language = 'EN'.
wa_itab-sdescript = 'Short Description'.
APPEND wa_itab TO it_itab.
CLEAR wa_itab.
LOOP AT it_itab INTO wa_itab.
ct_data-ta_guid = '000000000000000001'.
ct_data-equipment_ext = wa_itab-equipment_ext.
ct_data-descript = wa_itab-descript .
ct_data-valid_date = sy-datum.
ct_data-equicatgry = 'M'.
APPEND ct_data.
CLEAR ct_data.
ct_datax-ta_guid = '000000000000000001'.
ct_datax-equipment_ext = 'X'.
ct_datax-equipment = 'X'.
APPEND ct_datax.
CLEAR ct_datax.
it_descript-ta_guid = '000000000000000001'.
it_descript-text_language = wa_itab-text_language.
it_descript-descript = wa_itab-sdescript .
APPEND it_descript.
CLEAR it_descript.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'LTXT'.
it_longtext-text_line = 'SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'aaaaaaaaaaaaaaa'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'bbbbbbbbbbbb'.
APPEND it_longtext.
CLEAR it_longtext.
it_longtext-ta_guid = '000000000000000001'.
it_longtext-text_language = wa_itab-text_language.
it_longtext-text_id = 'INTV'.
it_longtext-text_line = 'cccccccccccccccc'.
APPEND it_longtext.
CLEAR it_longtext.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
call BAPI-function in this system
CALL FUNCTION 'BAPI_EQUIPMENT_SAVEREPLICA'
TABLES
ct_data = ct_data
ct_datax = ct_datax
it_descript = it_descript
it_longtext = it_longtext
return = return
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
WRITE : 'Successful'.
ENDIF.
IF NOT return IS INITIAL.
LOOP AT return.
IF return-type = 'A' OR return-type = 'E'.
WRITE : 'Error'.
ENDIF.
ENDLOOP.
ENDIF.
REFRESH return.
ENDLOOP.
Regards
SUrendar -
Material Master workflow views
I have a material master workflow which determines the views of material number. Configuration is there for several warehouses and getting warehouse view extension for all warehouses. My question is how do I avoid workflow for certain warehouses? Please note I don't want to remove/change configuration, it is needed in near future.
Thank you,
NagarajanHi,
My question is how do I avoid workflow for certain warehouses?
Please note I don't want to remove/change configuration, it is needed in near future.
So I hope you are trying to start the workflow by making use of events, if this is true then there will be an entry maintained in the txn SWE2.I think the best way to handle is to make use of the Check Function module, This is beacuse I am not sure whether you would be able to get the warehouse information in a BOR Business object,
So try to create a check function module and map this function module against the entry in the SWE2 txn. There you would be having the flexibility write your own validations, and later in future if you want to either include or exclude the validation you can do it easily...
The main purpose of the check function module is to do this kind of validations and validate the event.... IF you feel that the workflow should not receive the event then raise a exception in the check function module this makes sure that the workflow wont trigger for that specific warehouses.
Regards
Pavan -
Upload Material master with long text using LSMW
Hello,
i want ot upload material master data via MM01 using LSMW in following views: basic data 1 ,2, purchasing, purchase order text, plant data 1,2.
i have to upload long text in purchase order text with length more then 132 char. (approx 700 char long text). and i have text file in which long text is maintained in a single row. then how can i do it without formating text file or anyother possible solution.
please help.ca u clarify how can i do it.
suppos i have longtext "Air cooled type air-conditioning unit complete with following components & distance between indoor & outdoor unit is 10 RMT. A).Indoor evaporating unit comprising of cooling coils,insulated drain tray,20 micron HDPE washable filters,blower,motor,electical junction box etc. B).Outdoor condensing unit comprising of hermatic/semiharmetic compressor's.condenser coils,propeller/axial fans,motors,pressure switches/cutout etc.C).Charging of refrigerant gas & oil.D).Inter connecting refrigerating piping of copper duly insulated with EXPANDED POLYETHYLENE tubing.E).Complete electical power wiring of AL.&Control wirng of copper required from indoor & outdoor units.Earthing of the complete system with 8 G G.I.wire. F).Electrical panel will be completed with necessary starter,fuses,switches,timers,over-load relays,contactors,push button and indicating lamps,single phasing preventer etc..and also with remote control with cording. G).The panel should have 1 no.potential free contactor to connect with central fire detection system.The panel should have voltage scanner to ensure stabilized power input to the machine.H).Outdoor unit shall be mounted on MS angle base frame structure duly black painted with synthetic epoxy paint.I).The frame structure shall be mounted on MS plate & serrated rubber pads."
then what i have to do changes in lsmw.? -
What is Material master workflow
Hi gurus ,
Can anybody explain what is Material master workflow & Function Module ?what is its use?
Dev
Edited by: dev .. on Oct 15, 2008 8:21 AMDear,
You can find much info about workflows at: http://www.erpgenie.com/workflow/index.htm
http://help.sap.com/saphelp_46c/helpdata/EN/04/926f8546f311d189470000e829fbbd/frameset.htm
Workflow is a tool for automating the business process so that the process itself flows smoothly, without bottlenecks and without dead ends. Critical parts of the process can be streamlined with deadline monitoring and contingency options. Participants are informed of milestones in the process. The process definition itself is powerful enough to allow business re-engineering with re-training and to eliminate the impact of workforce changes on the basic business process.
SAP Business Workflow is the R/3 tool for handling the process automation within R/3 or between R/3 systems and other systems involved in the business process. It is flexible enough to handle ad hoc processes such as the circulation of an electronic document. It is robust enough to handle mission critical process in the production system such as the creation of a material master.
The different R/3 applications supply standard workflows for the commonly occurring processes. Once these workflow templates are activated, they are ready for immediate use. A complete set of workflow tools, including the workflow editor and workflow generation wizard, are provided to enhance these standard workflows or create new workflows. These tools are complemented with transactions for monitoring, tracking and the statistical analysis of the processes.
Because the business process often does not step at the R/3 boundary, various interfaces and third party tools are available for extending the process across systems.
Function module
Function modules are procedures that are defined in special ABAP programs only, so-called function groups, but can be called from all ABAP programs. Function groups act as containers for function modules that logically belong together. You create function groups and function modules in the ABAP Workbench using the Function Builder.
Function modules allow you to encapsulate and reuse global functions in the SAP System. They are managed in a central function library. The SAP System contains several predefined functions modules that can be called from any ABAP program. Function modules also play an important role during updating and in interaction between different SAP systems, or between SAP systems and remote systems through remote communications.
Unlike subroutines, you do not define function modules in the source code of your program. Instead, you use the Function Builder. The actual ABAP interface definition remains hidden from the programmer. You can define the input parameters of a function module as optional. You can also assign default values to them. Function modules also support exception handling. This allows you to catch certain errors while the function module is running. You can test function modules without having to include them in a program using the Function Builder.
The Function Builder also has a release process for function modules. This ensures that incompatible changes cannot be made to any function modules that have already been released. This applies particularly to the interface. Programs that use a released function module will not cease to work if the function module is changed.
http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db988735c111d1829f0000e829fbfe/content.htm
Regards,
Syed Hussain. -
Hi,
We are planning to implement the same thing. <as described in [this thread|Re : Material Master Workflow;>
Can u please provide me the valuable inputs for the same?
I have just started the preparing initial document,
so if anyone can provide me the details about this, I would be very grateful.
Initially i was planning to create one module pool program. Anyone who wants to create a material will go to that transaction and will create the basic data. Once he saves that data a chain of e-mails can be sent to other concerned persons. These people will enter the respective data and then they will send this to sap-core team. I was planning to introduce SAP-Workflow here only. We have thress level approval process.
But idea of creating / maintaining different views via sap-workflow is very appealing , so now thinking
of giving a try to this!
Waiting for any inputs and your experiences on working this.
Regards,
Vinod.
<Moved from [this thread|Re : Material Master Workflow;. As per the [Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement], please ask new questions in a new thread. Post links to other question if necessary.>
Edited by: Mike Pokraka on Feb 9, 2009 10:45 PMHi Parag,
Is BUS1001 still the right object for material (I see in 46C its event ViewCreated has been flagged obsolte.
You should otherwise be able to base your next step on this event. In my system 46C, BUS1001006 would be the right object to use.
hope this helps,
cheers,
Ajay -
Material Master workflow. Doubt?
Hi friends,
I am having a Existing Material Master workflow.
In that there is 1 tcode JI1D.Its working fing before i am modifying below activity.
Now i am modifying this workflow ie i am including 1 CONDITION TYPE in this tcode.
If plant is INDIA then call this JIID.Else skip this tcode.Only if ...else thats all.
Then i moved to PRODUCTION.
Its not triggering for both plant.
Pls suggest
MoosaHello,
Did it work in Development?
Did it work in Test?
Did the transport succeed without errors?
Have you done a SWU_OBUF?
How is it not working?
regards
Rick Bakker
Hanabi Technology -
Literature on Material Master Workflow in ECC
Hello All!
We are searching for documentation on Material Master workflows implemented in ECC. What are the features that can be implemented using workflows in Material Mater and is there any documentation available?
Thanks and Best Regards,
SmithaCreate purchase requisition by LSMW
-
Re : Material Master Workflow
Hi Friends,
I'm in the process of creating Material Master Workflow (i.e) Basic data will be created by one person (initiator) and the workflow gets started and various views will be created by different people.
Usine BUS1001006 methods Getmissedviews and createviews i'm sending workitems to the respective persons for creating views. The method CreateView is an asynchronous task hence the terminating event is required.
The problem i'm facing is even if one view is created , the workitems in other's inbox is removed.
Can any one help me onthis regard.....
Regards,
VijayHai Vijayasekar
Check the following
Check the below PDF file on Workflow:
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSWFL/PSWFL.pdf
There is a good book from SAP Press that I would
recommend as a starting point.It's called Practical Workflow for SAP and it is by Alan Rickayzen.
http://www.sap-press.com/product.cfm?account=&product=H950
I am giving you links for Workflow....
/people/ginger.gatling/blog/2005/12/01/link-workflow-business-objects-to-your-collaboration-tasks
http://help.sap.com/saphelp_erp2005/helpdata/en/fb/135962457311d189440000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2005/helpdata/en/c5/e4a930453d11d189430000e829fbbd/frameset.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
http://help.sap.com/saphelp_bw33/helpdata/en/92/bc26a6ec2b11d2b4b5006094b9ea0d/content.htm
http://help.sap.com/saphelp_bw31/helpdata/en/8d/25f94b454311d189430000e829fbbd/content.htm
Workflow
http://www.sap-img.com/workflow/sap-workflow.htm
http://www.sapgenie.com/workflow/index.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a5/172437130e0d09e10000009b38f839/frameset.htm
For examples on WorkFlow...check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/3d/6a9b3c874da309e10000000a114027/frameset.htm
http://help.sap.com/saphelp_47x200/helpdata/en/4a/dac507002f11d295340000e82dec10/frameset.htm
http://www.workflowing.com/id18.htm
http://www.e-workflow.org/
http://web.mit.edu/sapr3/dev/newdevstand.html
Go through the following:
1) Goto Tcode PFTC : Standard Task > Create Button>Workflow Templete
For Create Container
Element : ZBUS1001006
Name : ANy Name
Description
Data Type & Properties
Data Type:
select Object Type : BOR Object Type for BUS1001006
Properties:
Parameter Settingd : check all Import, Export & Mandatory Checkboxes
Basic Data :
Abbr : Create_View
Name : Some Name
Work Item Text : Create View Material & -
Click on DELE Button & Select Material From The List
Object Catagory : BOR Object Type
Object Type : BUS1001006
Method : View
Triggering Events
Obj Catagory Object Type Event
BOR Object BUS1001006 View
activate it
Enter on BUS1001006 Object Type you will get Quadratel<> Button after that
double click on Quadratel<> button you get green button
after that the system will generate the task No.
check in the Event linkage Tcode : SWETYPV
if you find an entry with your Workflow and linkage active
goto Tcode : SWEC click on New Entries
Change Doc Obje Obj Cat Obj Type Event on create
Material BOJ Obje BUS1001006 View Option Button(Checked)
save this
goto Tcode : SWEC
Change Doc Object : Material
Obj Catagoty : BOR Type
Obj Type : BUS1001006
Event : View
Check with On Create Button
Goto SWETYPV
Obj Catagoty : BOR Type
Obj Type : BUS1001006
Event : View
Receiver Type : Some Work Flow No: WS80000431 like this
Click on Work flow Builder
Regards
Sreeni -
Change material master i.e MM02 using BAPI's
Hi ,
I need a BAPI which will change material master for changing MRP 2,Accounting 1 and Costing 1 View .
Please provide me with code if possible .
Thank you .
Regards,
Kumar.hi ,
Use the fm SELECTION_VIEWS_FIND to get the list of active view for a particular materisl.
The index of each record in the returned table will correspond to the position of that view in the list of views that is displayed in the bdc recording.
The number of views maintained for a material is listed in field MARA-VPSTA.
Each Letter in above fields indicate the views maintained. Following is the list.
A Work scheduling
B Accounting
C Classification
D MRP
E Purchasing
F Production resources/tools
G Costing
K Basic data
L Storage
P Forecasting
Q Quality management
S Warehouse management
V Sales
X Plant stocks
for bdc check this,
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bdc%2btutorial
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/new%2bpage
BDC:
Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.
Features :
BDC is an automatic procedure.
This method is used to transfer large amount of data that is available in electronic medium.
BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).
BDC uses normal transaction codes to transfer data.
Types of BDC :
CLASSICAL BATCH INPUT (Session Method)
CALL TRANSACTION
BATCH INPUT METHOD:
This method is also called as CLASSICAL METHOD.
Features:
Asynchronous processing.
Synchronous Processing in database update.
Transfer data for more than one transaction.
Batch input processing log will be generated.
During processing, no transaction is started until the previous transaction has been written to the database.
CALL TRANSACTION METHOD :
This is another method to transfer data from the legacy system.
Features:
Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.
Updating the database can be either synchronous or asynchronous. The program specifies the update type.
Transfer data for a single transaction.
Transfers data for a sequence of dialog screens.
No batch input processing log is generated.
For BDC:
http://myweb.dal.ca/hchinni/sap/bdc_home.htm
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&
http://www.sap-img.com/abap/learning-bdc-programming.htm
http://www.sapdevelopment.co.uk/bdc/bdchome.htm
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm
http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html
Check these link:
http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm
http://www.sap-img.com/abap/question-about-bdc-program.htm
http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/
http://www.planetsap.com/bdc_main_page.htm -
Updating Material Master Moving Average Price using BAPI
Hi,
We need to create a program using which we can update material master moving average price for a specific material.
For this we are using BAPI_MATERIAL_SAVEDATA.
when we are executing this bapi with inputs, it is showing data updated or created but when we are checking it in MAterial Master the data (MOving Price ) is not getting updated.
Please advise,
Thanks.I am trying to use BAPI_MATVAL_PRICE_CHANGE to change the price of a material in material master
(The moving average price [MAP] in Accounting View 1)
Using the BAPI, I enter
--> RFC target are
-> Material No.
-> Valuation Area
--> Prices table (I enter the new price that i want)
when I run the BAPI, i get error message (This can be seen in the returns table)
ID --> CKMLSENDPRICE
MESSAGE NUMBER --> 701
DETAILS --> No customizing data for Valuation Area XXXX found
PLease advise. -
Material Master Workflow Solution
Hello All,
I have a question/scenario I would like some feedback on regarding the material master. Right now I have a requirement to create a new portal application for the users to use, replacing our lotus notes application, to add materials to SAP. This would require us to develop several screens for all of the fields, different fields for the approval process, and another workflow to handle the approval process.
After some analysis we thought we could add a workflow to the CREATE event for a material and allow that to generate a work item after the user creates a new material in MM01. The problem being this would already be saved to the DB and we shouldn't be deleting master data. We then went a step further and are debating if we should add logic to the enhancement point (MGA00001) in MM01 after the save to kick off the workflow and leave the transaction.
This solution would look something like this:
--User enters new material information in MM01
--At save we check the users authorization
-- If they are allowed to create materials we allow MM01 to finish as usual
ELSE
--- We kick off the workflow and generate a work item to be approved by the proper roles. The transaction would show a popup confirming the workflow was triggered and exit the transaction
--Workflow would execute appropriate tasks for the approval process and if/when it is approved would call a BAPI to create the material; finishing the process.
This solution would cut down on our development time for the web portal and allow us to use existing functionality for validations, drop downs, auto-fill features, etc etc. My concern comes in with is it a best practice to modify existing SAP transactions to terminate even if we are within the supplied enhancement point?
I apologize if this is in the incorrect forum. I wasn't sure this belonged in the ERP-Financial/MM/SC forums as it is not a functional issue and it seems to business specific to be a general ABAP inquiry.
Thanks,
CullenHi,
My question is how do I avoid workflow for certain warehouses?
Please note I don't want to remove/change configuration, it is needed in near future.
So I hope you are trying to start the workflow by making use of events, if this is true then there will be an entry maintained in the txn SWE2.I think the best way to handle is to make use of the Check Function module, This is beacuse I am not sure whether you would be able to get the warehouse information in a BOR Business object,
So try to create a check function module and map this function module against the entry in the SWE2 txn. There you would be having the flexibility write your own validations, and later in future if you want to either include or exclude the validation you can do it easily...
The main purpose of the check function module is to do this kind of validations and validate the event.... IF you feel that the workflow should not receive the event then raise a exception in the check function module this makes sure that the workflow wont trigger for that specific warehouses.
Regards
Pavan -
Material master workflow for changes
Hi Experts
I have a requirement to trigger multiple material workflows for all the plants that have a blocked status in MRP1 when the material gets uploaded into SAP from a third party.
I have used SWEC and created a new 'MaterialChanged' event and put a start condition for the workflow to look at the MRP1/status.
This looks to work fine as long as there is one plant and its MRP1 has blocked status. I am not able to figure out how to handle if there is a multiple plant specific data for a material and all or some of the plants are blocked, this is when multiple workflows are expected to trigger for each plant. Each plant has got different set of approvers.
Because I think the 'trigger' will happen only once for a material irrespective of how many plants the material may have.
If any of you have handled this kind of scenario, appreciate your help.
Thanks
SasiHi,
I think the easiest would be to just echance the business object with an attribute if there are any plants with the blocked status.
then in your workflow, you retrieve how many plants there are with blocked status and then use that data in the other tab for multiline element in a subworkflow.
This will create all the workflows per plant.
Kind regards, Rob Dielemans -
Material Master download to file using Idocs
I need to download Material Master to Application server or local PC using Idoc's. Is there a way to achieve this?
Hi,
You can use the userexit available in material master outbound function module to download the data into file and trigger an event which can call a workflow that by default set the status of the IDoc to not to be processed 31 or configure new status 28(as IDoc being monitored) and use the workflow to view the material file and release the IDoc if OK by resetting the status to 30 or mark it for deletion or as error by setting it to 31.
Sirish
Maybe you are looking for
-
i am trying to have multiple users on my mac can you help?
-
Sometimes when sending a mail it will go more often it won't go, it doesn't seem to be relevant to my geographic position and the message" a copy has been placed in your Outbox. The sender address" my email blah blah" was rejected by the server"
-
As far as I can tell, the "edit in" photoshop function in LightRoom copies a RAW file in the same location, I end up with two of the same image in my library, is there a way to specify where lightroom saves the file?
-
Osx mountain lion print and scan problems
I purchased OSX 10.8 mountain lion upgrade it shut down one of my computers and I had to repair my drive and go back to Lion OSX. The other one has made it unable to scan and shows some programs incorrectly comcast email etc. Almost like a Windows sa
-
NI 488.2 for Mac OS X 10.7.1
Hello, I wanted to connect to a spectrum analyzer HP 4195A to my Mac running OS X 10.7.1 (Lion) via a NI GPIB-USB-HS interface. It seems as though none of the current versions of NI 488.2 are currently compatible with OS X 10.7. On your site, its say