Notification to order in background
Hello Gurus,
I know that we can create notification from order but I want to create order from notification in background and in REL stage.Please suggest me how can I achieve this....Any bapi, exits??
Actually we are creating notification thru interface and hence want to create order in background and REL.
Please help.
Regards,
Smart
You can do this by proper coding in the include ZXQQMU20 (user-exit QQMA0014) , using following tools to Create an Order
Option 1
Using function module 'BAPI_ALM_ORDER_MAINTAIN' . When we use this BAPI we need to use fm BAPI_TRANSACTION_COMMIT also in sequence to it.
Option 2
Using a BDC coding (with the help of SHDB recording of IW31).
After successfully coding, what happens is:
When you Create and save a Notification, under specified conditions, an Order will be created in the background at the event of Notification Save with all field values you specify in the FM or BDC.
This is a skilled ABAPer's job.
KJogeswaraRao
Similar Messages
-
Creation of sales order in background
Hi ,
Can I create a Sales order in background?
What are the different ways to do it??
Thanks,
Shivaa.........Hi Gautham and Venu,
Very Thanks for ur instant replies.
The thing is I havent worked on BAPIs before, so I just want to make sure from u guys that there wont be any problem if we use BAPIs for creating sales order.
Ur thoughts please.... -
How to attachm a pdf document in sales order in background
Hello All,
I need to attach a pdf document in sales order in background.
Can anyone guide me on this?
Thanks,
ThiyaguHello Janagar,
Pdf file is not at the desktop to attach using GOS.
Pdf file is at Document Management System, requirement is to attach it to the sales order item.
Note: DMS file can be always allowed to attach at item level.Please dont bring GOS concept here.
It can be done manually via VA02 --> Extras --> Documents.
I need to automate the above process.
Regards,
Thiyagu -
Uploading sales orders in background
Hi everyone,
Iam trying to upload sales orders in background.As my program is a customised program of the standard sales order uplaod program RVINVB10 ,it is a direct input program which updates the tables using the function modules.
So to run direct input programs in background we are using transaction BMV0,creating a job and running it with the desired variant.the file which has the salesorders to be uploaded is also in the application server.
the problem is we have to upload bulk data so when ever an error occurs in the transaction BMV0,it says "Job cancelled after system exception ERROR_MESSAGE" . but my requirement is it should log the error and continue creating the other orders and log all the errors possible instead of cancelling the job.
please help.
Regards,
SravanthiHi,
One your bapi has returned the error table 'GT_RETURN'... you can use the following logic...
LOOP AT gt_return INTO gs_return WHERE type CA 'AE'.
CLEAR gs_bapi_errors.
CALL FUNCTION 'MESSAGE_TEXT_BUILD'
EXPORTING
msgid = gs_return-id
msgnr = gs_return-number
msgv1 = gs_return-message_v1
msgv2 = gs_return-message_v2
msgv3 = gs_return-message_v3
msgv4 = gs_return-message_v4
IMPORTING
message_text_output = gs_bapi_errors.
APPEND gs_bapi_errors TO gt_bapi_errors.
ENDLOOP.
* Update successful
IF gt_bapi_errors[] IS INITIAL.
REFRESH gt_return.
CLEAR ls_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = c_x
IMPORTING
return = ls_return.
IF NOT ls_return IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
APPEND ls_return TO gt_return.
PERFORM store_bapi_errors.
ENDIF.
* Update failed
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
ENDIF.
This will not interrupt your processing... -
Partner function not copied from notification to order
hi
i am using same partner determination procedure for notification and service order. i have defined some new partner functions in the procedure. the problem i'm facing is that only the partner functions which are made mandatory are getting copied from notifictaion to order. however i cannot make all the partner functions mandatory because they may not be relevant for all cases.
is this common behaviour of system and if so is there any solution (without making partner functions mandatory)
thanks in advance
koustavHi,
This is a Standard Functionality . You can try using the below USER-EXIT for your requirement.
EXIT_SAPLV09A_002:
Use this is customer has to be maintained to a specific sales area.
EXIT_SAPLV09A_003:
This suits more of your requirement.
INCLUDE ZXV09U03 - Add your code to copy the specific partner alone to the Doucment if it is an NOTIFICATION TO ORDER alone.
This is used to control the orgin of partners in the Partner determination procedure..
Hope this helps. -
Auto creation of purchase orders in background
Hi,
Can anyone help me with auto creation of purchase orders in background while saving production order as in standard sap only purchase requisition is getting created.Hi,
Yes according to standar SAP only requisitions get created while saving production order ..........if you want to have Purchase order also to be created you can approch this way...
1. use exit PPCO0001
2. fm EXIT_SAPLCOBT_001
create a background job id in SM36 .....call the methof for external event triggering
CALL METHOD cl_batch_event=>raise
EXPORTING
i_eventid = 'ZME59'
I_EVENTPARM = V_MANDT
EXCEPTIONS
excpt_raise_failed = 1
excpt_server_accepts_no_events = 2
excpt_raise_forbidden = 3
excpt_unknown_event = 4
excpt_no_authority = 5
OTHERS = 6.
Thanks,
Shailaja Ainala. -
Long Text not transfered from Notification to Order
Hi Experts,
We have 4.6 c version where in the Long Text from Notification created does not gets transfereed to Order if Order is created through Notification.
Does any one knows about any config missing or any note which needs to be applied.
Also if we go for E.C.C 6.0 do we need to maintain the config
Plant Maintenance and Customer Service->Maintenance and Service Processing->Maintenance and Service Order >Functions and Settings for Order Types>Define Notification and Order Integration
instead of or in addition to the config
Plant Maintenance and Customer Service->Maintenance and Service Processing->Maintenance and Service Notifications >Notification Creation>Notification Types-->Assign Notification Types to Order Types
Appreciate your valuable input in this regards
Thanks
ManishHi
These are the some of the notes related to ur issue...
I am not sure its gonna solve... but check it.. u might get some idea
[445628|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=445628]
[661800|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=661800]
Pl Note : i think in 4.6c it not available kindly check in Define notification and order data in one screen whether option is available or not
- Pithan -
GOS - Create Attachment for Order in Background.
Hi,
My Requirement is to attach a document (.PDF, .DOC, .TIF or .JPG) to transaction JHA1X with respect to Order in background and it wll be stored in Open Text Server.
Document details wiil be passed throuh Portal, as XSTRING to ECC. Is there any BAPI ( Something that helps) available to upload this to transaction ?
Note : Through transaction I am able to do this ( By BO and Doc Type ) using store business document.
Thanks,
Praveen NI would call the method CREATE_ATTACHMENT of class CL_GOS_DOCUMENT_SERVICE
this will allow to select the file on PC and will attach it to the business object
if you already have the binary contents of the file and don't want to change the way to get it, then you can look into this method how to do it -
The priority transferred from notification to order
Dear all ,
How to transfer the priority from notification to order & once it is transferred it should not be changed by anybody.In iw 32 we should not be able to change it .
So the priority in notification & order is exactly identical.
We can trace with what priority the notification is generated & with that what was the action taken in order against that priority.
Regards
chanhi
In T code OIAN make the priority field as display only hence when you create order from notification it will get copied and not possible to change in order .Making this display option it is not possible to specify the priority in the order header data.
For user exit please [Refer here|https://www.sdn.sap.com/irj/scn/wiki?path=/display/erplo/pm-csUserExits] and consult with your Technical team about your requirments
regards
thyagarajan -
Reference object in Notification and Order
Hi ,
I have a requirement to capture following in the reference Object for notification and Order
1. Functional Location
2. Equipment
3. Material
4. Serial Number
Configuration setting for overview of notification type doesn't have the option to capture all the above fields.
I am able to get all fields except Functional Location...
Please guide me
Regards
Anil KumarAnil,
I have just been looking at this same requirement.
Unfortunately you can only use the standard options for reference objects which does not allow for your requirement.
There are no user-exits/BADIs either, you would need to build a new screen and screen-logic which is a system modification.
The best I could do within the standard system is to include these fields on the Enhancement tab (user-exit IWO10018) or build a bespoke front-end via ABAP or HTML. GUIXT is another option.
PeteA -
Shop Paper for Notification and Order
Hi All,
I have assigned shop paper for both Notification and Order. Now when I am trying to print the Order or Notification via Maintenance Order or Notification respectively, both the outputs are in the selectable mode since order is created from notification.
But user wants that when he is trying to print Order only shop paper for Order should be in selectable mode and same for Notification. I checked the configuration settings for this but could not find anything.
Are there any settings where we can achieve this.
Thanks in advance
Regards,
ShobhaOK...try this:
in OIDB (notification) remove the selection check for all generic entries - this determines what is shown when you try to print. For example, if you have a setting for doc.type = * and it is checked for selection, each of those will appear when you print. By removing this selection check for doc type = *, it won't appear for yours. You should put a line there for your doc type with the selection checked. If you put a second line there for your doc type without the 'selection' checked - it will show, but be optional when you do a print.
In OIDG (work order), follow the same logic. Once you print the order, it will propose to print the notification as well (either selected or just available). Also, i think you should link the notification and order types in work order config.
This works when you are printing a work order, but i'm not sure if you can print the work order from the notification. I just tried this in my system and did get the notifications to print while printing the work order using the settings i've mentioned. -
Release Production order in Background
Hello,
Does someone know if there is a functionallity or exit to release a Production order in background even if the order has missing parts and the customizing setting in TA OPJK is set for the relevant order type to indicator 1 ( User decides on release if parts are missing ) !
In background it should release the order automatically in Foreground the the user should decide
Thanks in advance
HolgerThanks for your quick response.
I would like to know if we can run CO05N in background ? I dont want user to execute CO05N.
Do to client business it is not possible to configure SAP system to auto release.
Regards
Seshu -
E-mail notification for order lines maintained with an invalid license
Hello Experts,
I have a requirement to develop an e-mail notification for order lines maintained with an invalid license.
T-Code VA01, this mail will be triggered if order has been blocked due to invalid or no license at the time of saving.
we can add email notification by using some user exit. Can you please guide me on how to go about looking for the appropiate user exit. Or any other suggestions.
Thanks,
AbhishekAbhishek,
check this
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
Re: va01 user-exit....
http://www.allinterview.com/showanswers/69164.html
Thanks
Bala Duvvuri -
Hi experts,
I want to assign notifications to orders. I used the BAPI ISU_SMNOTIF_ASSIGNTOORDER, but it doesn't work correctly, because in the tab header Data of order, the field notification is empty. And the users want to navigate to the notification through this button in this tab, but if you press the notification button the system forces to create a new notification.
How can I do this process?
Thansk!Hi,
An other solution is,
Read the Order details using FM 'ALM_ME_ORDER_HEADER_GETDETAIL' and pass the exporting structure 'E_CAUFVD' details to importing parameter 'ORDER_HEADER_OLD' of FM 'ALM_ME_ORDER_HEADER_CHANGE' and the changes details to importing parameter 'ORDER_HEADER_NEW-NOTIF_NO'.
Regards,
Konda Sravanthi. -
Mass loading of Notifications and orders
Dear Experts,
We want to create notifications and maintenance order in bulk ie nearly 500 nos each for the next financial year in advance . Is there is any standard transactions to carry out this. Please advice whether we can upload from a excel and what are the mandatory fields and data we need to maintain for uploading for notifications and orders .Hi,
You can use the LSMW recording method for uplaoding the notification and orders.Create recording for notification and order creation which will grab all neccessary fields.Preapre the flat file or u can maintain the excel file for data preparation afterwrads you can copy same to flat file and uplaod the same.
Regards,
Rakesh
Maybe you are looking for
-
hi Iam new to swing programming.i have a JTable which has a column for date.i want to validate the date.if the date is invalid it should clear the cell and the focus should remain in the same cell.how to achieve this.any ideas. tks in advance
-
Scale-out deployment is not supported in this edition of reporting services
Can the "scale-out deployment" option be turned off so that I can migrate SSRS databases from Enterprise edition to Standard? After I attached databases from a SSRS 2005 Enterprise to SSRS 2012 Standard I am getting an error about scale-out deployme
-
I cannot figure this out for the life of me. I have my contacts in my iPhone, Yahoo, and Mac Address Book (connected to Yahoo) althought a few might appear in one and not in the other yet. I bought a new 4S which ATT synced my contacts for me. I just
-
Accessing photos from iPhoto 09
I just want to control the photos myself, open them in Photoshop or move or copy them. Where are they? They are mine and I want them. I am not particularly interested in iPhoto. Thanks Shelley
-
Suspect httpd processes (too many, wrong user)
In trying to sort glacial uploads from my son's G5 iMac 1.8GHz, i observed that there are multiple (7) httpd processes (along with httpsproxyd, webfilter and usbmuxd) running under user "nobody". Could this be a security breach? Web sharing (in fact,