Create order based upon notification in NWBC / Portal
Dear experts,
How to create a maintenance order based upon a notification, using the POWL for notifications ?
I am using NWBC and would like to create a maintenance order, based upon a notification put in process.
In R/3, this works fine using transaction IW22 / IW28 and all info from the noticiation is copied in the new order.
How can I get the same functionality using the role SAP_BPR_MAINTENANCE_TECH_12 ?
Kind regards,
Dirk
Dirk,
You should be able to select the Notification number from the POWL overview list and choose the "Create Order" push button on the Tollbar (along with display notification, change notification etc).
What i have noticed is that once you are inside the notification from the Portal application, the create Order push button or functionality doesn't seem to exists. This is probably incomplete functionality taking into consideration the standard IW22 transaction /Or a Bug and maybe you could raise a OSS Note for the same.
Regards
Narasimhan
Similar Messages
-
Create maintenance order based upon notification in NWBC / Portal
Dear experts,
How to create a maintenance order based upon a notification, using the POWL for notifications ?
I am using NWBC and would like to create a maintenance order, based upon a notification put in process.
In R/3, this works fine using transaction IW22 / IW28 and all info from the noticiation is copied in the new order.
How can I get the same functionality using the role SAP_BPR_MAINTENANCE_TECH_12 ?
Kind regards,
DirkDirk,
You should be able to select the Notification number from the POWL overview list and choose the "Create Order" push button on the Tollbar (along with display notification, change notification etc).
What i have noticed is that once you are inside the notification from the Portal application, the create Order push button or functionality doesn't seem to exists. This is probably incomplete functionality taking into consideration the standard IW22 transaction /Or a Bug and maybe you could raise a OSS Note for the same.
Regards
Narasimhan -
How to create an order based on Notification through BAPI_ALM_ORDER_MAINTAIN
Hi
I need to create an order based on the notification no. This is manually can be done using the Standard T.Code IW34.I am using BAPI_ALM_ORDER_MAINTAIN to create an order based on Notification. I am getting the below message( which is success message)
Order %00000000001 saved with number 40001258
BAPI control was ended
Though order is created it not assigned to notification No. I am using ref key as '%00000000001' and also I tried with '%0000000000140232323' where 40232323 is notification No.
And if I checked in order the notification No is assigned to order as '%00000000001'. And when I check back the Notification, the order is not assigned to Notification No. How to assign the created order no to Notification No.
Code is attached for Ref.
Now the problem is the order is not assigned to notification no. Is there any FM or BAPI to do the same fucntionality..!
Regards,
AmarHello Amarnadh,
Keng Haw Soon is right, object key should always have the client like 010.
In your code you were passing it without the client.
Pass like below and it will work.
ls_methods-objectkey = '%00000000001000040232323'.
Regards,
Thanga -
Create quotation based on notification
Hello All,
Can any one tell me hwo to create quotation based on notification.
I know the BAPI's BAPI_QUOTATION_CREATEFROMDATA2 has to be used to create quotation
i get diffrent errors like
1) in sufficient parameters
2) Sales document was not changed
I don't know what these error means and How to solve it.
Here is my code
data: ls_quotation_header type bapisdhd1,
ls_quotation_headerx type bapisdhd1x,
lt_items type table of bapisditm,
lt_itemsx type table of bapisditmx,
lt_partners type table of bapiparnr,
ls_partner type bapiparnr,
ls_item type bapisditm,
lt_return type table of bapiret2,
ls_return type bapiret2,
ls_itemx type bapisditmx,
ls_diadr type diadr,
lv_parnr type ihpa-parnr.
ls_quotation_header-sales_org = '1000'.
ls_quotation_header-distr_chan = '10'.
ls_quotation_header-division = '20'.
ls_quotation_header-doc_type = 'AS'.
ls_quotation_header-ref_1_s = '63693'.
lv_parnr = ls_quotation_header-ref_1_s.
ls_quotation_headerx-notif_no = '000350000002'.
*ls_quotation_header-SALES_GRP = 'SOG'.
*ls_quotation_header-SALES_ORG = '0001'.
*ls_quotation_header-DOC_TYPE
*PURCH_DATE
ls_quotation_headerx-sales_org = 'X'.
ls_quotation_headerx-distr_chan = 'X'.
ls_quotation_headerx-division = 'X'.
ls_quotation_headerx-doc_type = 'X'.
ls_quotation_headerx-ref_1_s = 'X'.
ls_quotation_headerx-notif_no = 'X'.
*ls_quotation_header-SALES_GRP = 'X'.
*ls_quotation_header-SALES_ORG = 'X'.
*ls_quotation_header-DOC_TYPE
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = lv_parnr
importing
output = lv_parnr.
break-point.
call function 'PM_PARTNER_READ_MASTER_DATA'
exporting
parnr = lv_parnr
nrart = 'KU'
importing
diadr_wa = ls_diadr
exceptions
no_valid_parnr = 1
no_valid_parnr_today = 2
no_authority = 3
parvw_and_nrart_inital = 4
others = 5.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
elseif sy-subrc = 0.
move-corresponding ls_diadr to ls_partner .
append ls_partner to lt_partners.
endif.
ls_partner-partn_role = 'AG'.
ls_partner-partn_numb = lv_parnr.
append ls_partner to lt_partners.
*ls_item-hg_lv_item = 5.
*ls_item-material = 31999.
*ls_item-sales_unit = 'LE'.
*ls_item-item_categ = 'ZEQU'.
*APPEND ls_item TO lt_items.
*ls_itemx-hg_lv_item = 'X'.
*ls_itemx-material = 'X'.
*ls_itemx-sales_unit = 'X'.
*ls_itemx-item_categ = 'X'.
*APPEND ls_itemx TO lt_itemsx.
call function 'BAPI_QUOTATION_CREATEFROMDATA2'
exporting
* SALESDOCUMENTIN =
quotation_header_in = ls_quotation_header
quotation_header_inx = ls_quotation_headerx
* SENDER =
* BINARY_RELATIONSHIPTYPE = ' '
* INT_NUMBER_ASSIGNMENT = ' '
* BEHAVE_WHEN_ERROR = ' '
* LOGIC_SWITCH =
* TESTRUN =
* CONVERT = ' '
* IMPORTING
* SALESDOCUMENT =
tables
return = lt_return
quotation_items_in = lt_items
quotation_items_inx = lt_itemsx
quotation_partners = lt_partners
* QUOTATION_SCHEDULES_IN =
* QUOTATION_SCHEDULES_INX =
* QUOTATION_CONDITIONS_IN =
* QUOTATION_CONDITIONS_INX =
* QUOTATION_CFGS_REF =
* QUOTATION_CFGS_INST =
* QUOTATION_CFGS_PART_OF =
* QUOTATION_CFGS_VALUE =
* QUOTATION_CFGS_BLOB =
* QUOTATION_CFGS_VK =
* QUOTATION_CFGS_REFINST =
* QUOTATION_KEYS =
* QUOTATION_TEXT =
* EXTENSIONIN =
* PARTNERADDRESSES =
regards,
LisaIn the meantime we have found the solution to this problem.
The objectkey must contain the notification number (12 digits):
<b>METHODS</b>
000001 HEADER CREATETONOTIF %00000000001000010000188
000001 OPERATION CREATE %000000000010010
000001 SAVE %00000000001
Kind regards,
Lieselot -
Could you restrict purchase orders based upon Vendor / Material Group?
Hey everyone - I've got a general "could this be done" kind of question.
We would like to add on to the vendor purchasing view to include "valid" material groups. This would then have what material groups could be purchased for which company code for that vendor. Then in the purchase order creation / modification we would like to be able to validate this purchase order against this vendor / company code / material group combination.
Obviously with enough custom code this could be done. My question is whether it could be done without out introducing too much custom code - how would you construct such a solution to this problem?
We are a SAP 4.7 shop.
Thanks! Ken Little>
Ken Little wrote:
> Hey everyone - I've got a general "could this be done" kind of question.
>
> We would like to add on to the vendor purchasing view to include "valid" material groups. This would then have what material groups could be purchased for which company code for that vendor. Then in the purchase order creation / modification we would like to be able to validate this purchase order against this vendor / company code / material group combination.
>
> Obviously with enough custom code this could be done. My question is whether it could be done without out introducing too much custom code - how would you construct such a solution to this problem?
>
> We are a SAP 4.7 shop.
>
> Thanks! Ken Little
By include "valid" material groups i think it means you are introducing a new field or some value in already existing field in vendor master.
1) Now to restrict PO based upon material group a small custom code is needed.
Use BAdI ME_PROCESS_PO_CUST....here write a code with help of your ABAP person that system will first select the
LIFNR (vendor code) entered in the PO...then it will check the same LIFNR in LFM1 table...here it will check the material
group in the customized field & if found that it is within the list of previous listed material group then it will allow to process
further or otherwise give a customized error message.
or
2) Use the field Group in OMSF...here maintain a common group against the material groups you want to do the purchase cycle.Now ask your BASIS person to use this group in carry out a specific activity, the user must have authorization for the combination of the activity and the authorization group.
Regards,
Indranil -
Enhancement request : Create object based upon existing
It would be useful to be able to create a new object based upon the definition of an existing one (e.g. a GUI version of CTAS).
(for those browsing the forums who haven't come accross the acronym before, CTAS = "Create table as select")Hmmm .... ok, you got me !
But, I would say .... can we have a tickbox there for "metadata only" i.e. CTAS table with no data. -
Create Object based upon Instance of TestStand
Hello,
I currently have TestStand code which creates an ActiveX Object reference to a StationGlobal...
Currently the ActiveX Object Reference created is always the same... I'm looking for a way to create a different ActiveX Object reference depending on what instance of TestStand open...
So I guess I'm wondering if there is an easy way to do this? Is there a variable I could use to distinguish different instances of teststand and somehow incorporate this into Create Options?
Thanks for any response.
Solved!
Go to Solution.I can imagine that this property of the Engine class could help you:
AppMainHwnd Property
Syntax
Engine.AppMainHwnd
Data Type
Long
Purpose
Specifies the Window handle of the owner of modal dialog boxes.
Remarks
TestStand uses this property to make dialog boxes modal to the application. Do not set this property because TestStand sets it automatically when the application creates the TestStand Engine. Setting this property can cause dialog boxes to be modal to the wrong window. This property usually refers to the main window of the application but refers to the window of the dialog box when the application displays a modal dialog box.
If the handles are different, you are using "a different instance of TS".
Norbert
EDIT: Starting the application, closing it and restarting it will likely generate different window handles. So you have to make sure that you shutdown connections to the ActiveX Server properly before actually shutting down the application for good. This, of course, is recommended nevertheless, independent of this "issue".
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Error while creating order from notification
Dear Experts,
I am getting error (No material number transferred(Message no. M3752)) when creating order from R3 notification. the material number not copied from screen to VIQMEL. This is only in few times, not all times. when i debug this, in VIQMEL-FEKNZ = X(Error Records Exist).
This is only for R3 notification. Also not in all times.
What is the problem?Thanks, I am creating notification thru IW21. form IW22 i am creating order. while creating is gives above error. in this case MATNR not saving in QMEL. even when i am saving in IW22 it's not saving. when i am creating order from IW22 it gives above ror. but it gives error some times only, not all the times. for the same equipment i created so many. some four times only i am getting this.
-
BAPI to create SNP planned order based on start date
Hi,
I am looking for a BAPI to create SNP planned order based on the order start date. There is BAPI BAPI_MOSRVAPS_CREATESNPORDER which can be used to create SNP planned order based on the end date but not based on the start date.
Also would be great if some one can share how do they create SNP Planned orders using BAPI BAPI_MOSRVAPS_CREATESNPORDER in case if GR processing time is defined in the product master and workdays for GR to be respected according to the calendar.
Regards,
VenkatHello Mr.Venkat,
Hope you recognize me.
Please check out the BAdi below.
BAdi - APO_BAPI_BUS10503 (this is the BAdi for ManufactOrderAPS BAPI which contains the SNPorder BAPI)
Method - CHANGE_SAVEMULTIPLE2
In this method parameter IT_ORDER_HEAD contains Order start date input option.
For GR time please check this (not sure if it will help).
Same BAdi/ same method
Parameter IV_PLANNING_MODE_USAGE contains field PLANNING_MODE.
Value 1 for PLANNING_MODE corresponds to "Observance of parameters from the product master".
This may make it respect the GR time in product master
Good luck with the above
Regards,
Ashok -
Creating sales order based on store numbers in IS retail
Hi ,
I want create a sales order based on the PO received from the customer in the IS Retail system. The purchase order will be sent in a EDI file.
a single line item in the PO will have multiple store locations where we need to ship materials. for example.
Let us take an example
PO will have an item "Shampoo" quantity - 1000, this 1000 has to be shipped to diffrenet stores like 0001 - 100, 0002 - 100 , 003 - 200 etc. Based on this PO we need to create a sales order.
Is there any way we can handle in SAP IS retail to create sales order & save the customer store number in the sales order for that item
With Regards
K.VaradharajanHi Varadarajan,
For one Sales Order only one Sold to Party and one Ship to Party are possible as they are header data.
You can have individual Sales Order for each outlet and one delivery can be made for several Sales Order for single Ship to Party.
Hope this clarifies you.
Regards,
ManiKumaar -
ADF BC: Creating updatable VO based upon DB View with "instead of" trigger
Hello all,
I have got an interesting issue. I have an Oracle DB view that is used to hide some complexity in the underlying DB design (it does some unions). This view is updatable because we have created an "instead of" update trigger to update the correct table when a row is updated. This is working fine in SQL.
Next, we have created an ADF Entity object based upon the view, specifying an appropriate PK for the DB View. Then, we have created an updatable VO based upon the EO. All well and good so far. The issue we have is in trying to commit changes to the DB - because the ADF BC framework is trying to lock the row to update (using SELECT ... FOR UPDATE), it's not working because of ORA-02014 - cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
This leads me to thinking about overridding doSelect() on the EO as hinted here http://radio.weblogs.com/0118231/stories/2005/07/28/differenceBetweenViewObjectSelectAndEntityDoselectMethod.html
As a temporary test, we have over-ridden the EO's doSelect to call super.doSelect(false) and it does work, although we will have lost update issues as detailed in Steve's article.
My questions:
1). Is overriding doSelect() the correct thing here? Perhaps there is a better way of handling this problem? I do have a base EO class from which all of the EO's extend, so adding this behavior should be straightforward.
2). Does anyone have example doSelect implementation? I am thinking of overriding doSelect for my EO and calling super.doSelect (lock=false), but then I need to deal with some possible exceptions, no?
Kind regards,
JohnHi John,
I have exactly the same issue as you experienced back in January. I have a complex data modelling requirement which requires the need to pivot rows into columns using ROW_NUMBER() and PARTITION clauses. To hide the complexity from the middle tier, I have created a database view and appropriate INSTEAD OF triggers and mapped my EO to the view. I have overriden the lock() method on the EO implementation class (to avoid ORA-02014) and would like to try the same solution you used with the pl/sql call to lock the record.
My question is, how did you manage the release of the lock if the transaction was not rolled back or committed by your application i.e. if the user closed the browser for instance.
In my naivity, I would like to think that the BC4J framework would release any locks for the database session when it found the servlet session to be terminated however my concern is that the lock would persist and cause complications.
Any assistance greatly appreciated (if you would be willing to supply your lock() method and pl/sql procedure logic I would be even more grateful!).
Many thanks,
Dave
London -
Default GL account upon goods issue to maintenance order based on activity
Hi all,
There's a scenario here in Plantation Industry that we require to default GL account upon goods issue to maintenance order based on activity type assigned in the order instead of only posting to consumption account, is there anyway in OBYC or user exit able to fulfill requirement mentioned?
Thanks as advanced.Hello
With help of general Modifier in combination of valuation class you can assign GL as per your wish for offset posting incase of GI to order/anything
Example
Transaction key-GBB
General modification- VBR
Valuaction Class - checked
Dr/CR- checked
Assign the general modifier to T code MIGO , through OMJJ
Regards
Dinabandhu -
How to create an album based upon date of importing photos
today i imported over 2000 photos with dates accross three years time frame. how can i create an album based upon the date i imported the photos? or can i.
if not, how would i add these pix to a specific album without going through the whole library some 15,000 photos strong now?Check out the Film Rolls ->
View -> Film Rolls
Each import creates a Roll, so the most recent one's should be easy to find. Select all and make an album from them.
Regards
TD -
Created purchase order based in drafts
I need help, I want to create purchase order based in drafts.
Has somebody any sample in SDK??
Thanks.Hi Santiago,
Please see your Help Filesprovided with the SDK:
DI-API > Reference > Overview > Objects > Documents. Below on that page you'll find a nice link to the sample below. Replace the <i>vDrafts.DocObjectCode = oInvoices</i> with order and you're set.
Hope it helps,
Rowdy
<b>Code (VB from the Help File)</b>
Sub AddInvoice_Click()
Dim RetVal As Long
Dim ErrCode As Long
Dim ErrMsg As String
'Create the Documents object
Dim vDrafts As SAPbobsCOM.Documents
Set vDrafts = vCmp.GetBusinessObject(oDrafts)
'Set values to the fields
vDrafts.DocObjectCode = oInvoices
vDrafts.CardCode = "BP234"
vDrafts.HandWritten = tNO
vDrafts.DocDate = "21/8/2003"
vDrafts.DocTotal = 264.6
'Invoice Lines - Set values to the first line
vDrafts.Lines.ItemCode = "A00023"
vDrafts.Lines.ItemDescription = "Banana"
vDrafts.Lines.Quantity = 50
'Invoice Lines - Set values to the second line
vDrafts.Lines.Add
vDrafts.Lines.ItemCode = " A00033"
vDrafts.Lines.ItemDescription = "Orange"
vDrafts.Lines.Quantity = 1
'Add the Invoice
RetVal = vDrafts.Add
'Check the result
If RetVal <> 0 Then
vCmp.GetLastError ErrCode, ErrMsg
MsgBox ErrCode & " " & ErrMsg
End If
End Sub -
Creating PM Order from PM Notification
Good morning Abap Guru's,
i hope some of you can help me with what i am asking,
My system is 4.6C
Here is the scenery:
The client wants to create a PM Order when saving a PM Notification.
I found an User Exit QQMA0014, the is called when a PM Notification is saved in IW21.
My first question is, in this Exit can i create an order related to this notification i am saving, or is there another exit to do this ?
My second question is, is there any function module to create a PM Order ?
hope someone can help me with this..your answers will be greatly appreciated.
Best regards,
Ricardo MonteiroHi,
You can create PM Orders by using function modules. But the real problem is - If you create the PM Order ( say you do it thru IW31) , there is no way you can attach an existing PM Order to an existing PM notification. So calling another function module to create a PM notification possibly does not solve your problem directly.
The solution is - Create a Function module that calls IW22, clicks on the Create Order icon from there and then does the subsequent processing. If the Notification is getting created ( say Iw21 ) then you will have to use another FM to get the buffered data ( use READNOTIBUFFER) . You can call this newly created custom FM at the USER EXIT you have identified and call the FM ON_COMMIT.
This should solve ur problem. Revert in case of clarifications.
Maybe you are looking for
-
After Changing the start date for a task in a project we are not able to save
Hi When we are updating the task start date of a particular task the below message is poping up in Project Professional and when we trying to update in Pwa and saving it automatically the save is becoming undone. We are logging in with that user cr
-
SMQ2 Inbound Queue TIME_OUT dump
Hi all, When we try to run SMQ2 transaction, it is resulting in TIME_OUT error. Hence nor we are able to view the entries, neither we can delete them. We also dont know from where the entries are being received. All the RFC connections are working fi
-
Issue in lot controlled items reservation API
Hi, When I am going to reserved the lot controlled item thru following API, it is giving an error message. Can anyone help me to resolve this issue as it is not showing an detail error message . Following is the Error message : =====================
-
Render HTML in phaselistener for AJAX request
Hello all, I have a page in which some its content is loaded dynamically by an Ajax request. To do this, I have a PhaseListener that build some HTML code and send it back to the client. Right now in my PlaseListener, I build the HTML code by concaten
-
Error when I enable ADvance Search and Quick Search
When I enable Advance Search it is giving this error 07/07/16 06:02:22 javax.faces.el.PropertyNotFoundException: Error testing property 'allConditionsMet' in bean of type null 07/07/16 06:02:22 at com.sun.faces.el.PropertyResolverImpl.isReadOnly