How to create 'Planned service line' using BAPI_ENTRYSHEET_CREATE? Pl. help
I need to create service entry sheet ( SES ) using input data from text file through BAPI_ENTRYSHEET_CREATE.
If the input contains service line items, which are not present in PO, it should be treated as an unplanned service and correspondingly 'unplanned' indicator is to be set on ML81N ( Service netry sheet ) display.
I want to make an entry unplanned if the input field external no. ( Field: BAPIESLLC-EXT_LINE ) is not matching with external no. field of corresponding purchase order to which the SES refers.
The BAPI works fine for all cases except one. If the unplanned service line contains field SERVICE_NO value which is matching with a SERVICE_NO in PO, it is invariable treated by BAPI as 'PLANNED'. ie. BAPI decides whenther a service line is planned or unplanned based on SERVICE_NO only.
For eg. Let a PO contains one service line with SERVICE_NO value 1008505.
If SES input file contains 2 service entries with SERVICE_NO value 1008505.
While creating SES, the BAPI should treat first entry as 'planned' and second line as 'unplanned'.
But while running the program, both lines are created as 'Planned' only, since SERVICE_NO value 1008505 exists in the PO.
I need to set the service line planned/unplanned through my prgram, overriding the automatic setting up of BAPI_ENTRYSHEET_CREATE.
Hope this clarifies my requirement.
Grateful if somebody cam provide a solution.
Thanks & Regards,
Manju
Do NOT USE BAPI_SALESORDER_CREATEFROMDATA, that FM is obsolete!
Use BAPI_SALESORDER_CREATEFROMDAT1 .
To build a reference to your contract you have to supply ORDER_HEADER_IN.
Here´s a sample:
MOVE:
gs_vbak-vbeln TO ls_bapisdhd1-refobjkey,
gs_vbak-vbeln TO ls_bapisdhd1-ref_doc,
gs_vbak-vbtyp TO ls_bapisdhd1-refdoc_cat,
gs_vbak-auart TO ls_bapisdhd1-refdoctype.
also gothrouh the links
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/abap%2b-%2bsimple%2bprogram%2bto%2bcreate%2bsales%2border%2busing%2bbapi
Similar Messages
-
How to create the service lines in a sales order using Process_order API
Hi ,
I have to create the service lines in a Config to order using process Order API. When i am trying to create a sercvice line , it is comming as new line all together. but i need that one to happen in the configuration itself after the option item but not like standalone line.
what are the manditory fields for service lines to create using Process_order API.
Apprciate your help on this.
Thanks
RagsModerator message - Please do some analysis before posting here - thread locked
Rob -
How to create a Service request using Exchange connector in SCSM 2012
HI ,
I am able to create Incident request using exchange connector.Could you please let me know that how can i create Service request using Exchange connector 3.0.
Thanks in advance.Hi,
Select a service request's template for new work items on the last wizard's page.
Cheers,
Marat
Site: www.scutils.com Twitter:
LinkedIn:
Graveyard: -
How to create the service order using CRMXIF_ORDER_SAVE
Hi Friends,
I want to create service order using thsis function module
CRMXIF_ORDER_SAVE and quantity also in this service order transaction.
Any body please explain the above questionHi Friends,
I want to create service order using thsis function module
CRMXIF_ORDER_SAVE and quantity also in this service order transaction.
Any body please explain the above question -
Create Oracle Service Bus using BEA workshop
Can someone please help with BEA Workshop developer guide/tutorial detailing how to create Oracle Service Bus using workshop IDE.
IDE - BEA Workshop 10gR3
OSB version - Oracle Service Bus 10gR3
Thank youThanks for your response Eric.
The tutorials that I've seen so far deal with OSB console, none of them talk about creating OSB using BEA-workshop.
On workshop IDE there is some help on OSB workshop plug-ins, but those are mostly one liners about the plug-in features
Please advice if you've link to OSB-Workshop tutorial.
Thanks -
How to change Service Item using BAPI_ENTRYSHEET_CREATE.
Hi All,
There's a requirement for me to upload/ Create Entry Sheet using BAPI_ENTRYSHEET_CREATE from the source file.
The Header was given to me but the Service Item, they would like the flexibility to change the existing lines that was adopted from ML81N.
Eg of the file.
Header given:-
PO NO
Po Item
Short Text
Ext Entry Sheet No
Service Location
Period Start
Period End ....n so on
Service Item given:-
Service Line (Extrow)
Service Order Qty (Memge)
Ext Service No (EXTSRVNO)
The objective of this file is
1) Create Service Entry Sheet (using Header)
2) Adopt the Service Item
3) Change Service Item (using Service Item)
Could anyone guide me how to do it? If Using BAPI_ENTRYSHEET_CREATE...is actually creating it with full details of the upload file. but given to me, t requrement is they would like to create n change the item.
Appreciates your help.
Thank you.
Regards,
Sheena WeeHi ,
If you are trying to test the FM through TCode SE37 then it will not give you the desired output.Do one thing create a test program and there you call the FM with your data.I hope in this way you can solve the issue.
Regards,
Sarbajit. -
How to create a muli line text area using JavaFx
Hi all,
Since the preview SDK does not contain TextArea any more, I am wondering how to create a muli line text area using JavaFX. The behaviour of this text area/field should be somehow similar to JTextArea in Swing or StyledTextWidget in SWT.
Does JavaFX have any support for this? What would be a sensible approach to create such a widget?
Thanks for your suggestions,
br michaelThis is a pretty old thread (I know I came across this while searching for something similar recently), but I figured I'd throw this out there in case other people might find this useful. As I write this, JavaFX's latest version is 1.3... which may have added the needed functionality since the last post.
You can now create a multi-line text area using a TextBox and by specifying the nubmer of lines and setting the "multiline" value to true. It may not offer all of the same functionality as JTextArea, but it did the job for what I needed... newlines by pressing enter, scrollbar if text surpasses height, etc.
Here's a simple example:
Group {
content: [
TextBox {
text: "This is a multi-line textbox"
lines: 10 // <-- this may/may not be necessary depending on your situation. Default is 5.
multiline: true
}Edited by: loeschg on Jul 29, 2010 2:59 PM -
Creation of service entry using BAPI_ENTRYSHEET_CREATE
Hi Experts,
I have a requirement to create a service entry using BAPI with multiple account assignments. It can be distributed by quantity or percentage. Please give sample code.
Thanks,
LalynHi,
Please go through the function module BAPI_ENTRYSHEET_CREATE documentation and the documentation available in importing, exporting, tables on the right hand side with green buttons. Then you can able to know how to use this bapi. -
How to create a Service Contract ? (ABAP related devlopment)
Dear All,
How to create a Service Contract ? (ABAP related devlopment)
The Info I have is that
Service contract will contain:
u2022 Validity Start
u2022 Validity End
u2022 Duration u2013 minimum period for contracts
Additional Info:
1. Creation of service contract will take place automatically via u201Cfunction moduleu201D. This step will take place if all serial numbers are known in the sales order.
2. When ever a Sales Order is created in Seibel containing a line item of servie contract I need to create a service contract
I searched a BAPI -- BAPI_CONTRACT_CREATE
I searched a Tran -- VA41- create Contarct ( type - WV - Service and maint)
I am i in right direction ---> , If you have any good solution kindly answer
Please help.Hi Iqbal,
You can use
BAPI_CONTRACT_CREATE
BAPI_CONTRACTS_CREATEFROMDATA .
Once you create the contract, update the technical objects for the contracts
using two function modules called one after another.
IWOL_WV_ADD_OBJECTS
IWOL_WV_POST_OBJECT_LIST
Check this link:
http://abap.wikiprog.com/wiki/BAPI_CONTRACT_CREATE
Regards,
Chandra Sekhar -
Creating a service report using SQVI
Hi experts
I am creating a service report using SQVI
The report should have the following fiels
SrvPO No | SrvPO Data | vendor | Stata | City | Type of Srv (Ad\banner|maintnc.) | Amount | Status(open or closed)
I am using the following tables using table join fnc
1. EKKO
EBELN-PO No
AEDAT - PO Data
LIFNR - Vendor
PROCSTAT - Status of PO doc
2.LIFNR
REGIO - State
ORTO1 - City
3. ESSR
TXZ01 - Type of Service (Short text)
4.EKPO
NETWE - Net amount of PO
All the tables are legally join but after executing I am not able to fetch any data or hardly one service PO.
And the selection field will be only From Date and To date.or the Service PO No.
Immediate response is urgent
Regards
ParthaModerator message: you said your issue is solved but did not mark your discussion as such, please see
How to close a discussion and why -
Creating a service order using FM
Hello everyone,
I am new to CRM technical. I have a requirement to create a service order using standard function module passing only 3 parametrs like category1, category2 and short text. How should I start the report. Can anyone help me in posting the code and the approach.
Thanks in advance!Hi Sandeep,
The best approach to learn this development is to debug the standard functionality by providing the data which you need in your requirement. Then you will get familiar with what are structures which needs to be populated and send to One Order API - CRM_ORDER_MAINTAIN.
This above mentioned API will be the one which you need to use in the creation of Service Order. So, you can also search with the above mentioned Module.
Hope this helps. Scan the Forum for FAQ's on problems that you might get in the development.
Thanks,
Samantak. -
How to create a new line in label in Xcode
How to create a new line in label. for example I have two buttons & one label. when i press first button, l want to change the label text to "Hello World". then when I press the second button, on the same label I need to display"Good Bye" on the next line in xcode 5?
I want to display the lablel like below:
Hello World
Good ByeI am using Xcode to develop an app for iOS.
I tried using multi-line label & belwo is my code.
- (IBAction)change:(UIButton *)sender {
self.Screen.text = @"\nHello World";
- (IBAction)newChange:(UIButton *)sender {
self.Screen.text = @"\nGood bye";
everytime when i pressed the button, it replacing the whold lable text instead of adding the second line. -
XML Parser Error while creating Web service Client using JAX RPC
hello evryone,
Im facing XML Parser Error while creating web service client using JAX RPC. Im using Net Beans IDE for development purpose. I have wrote configuration file for client. Now i want to create Client stub. However i dont know how to do this in Net Beans. So i tried to do it from Command promt using command :
wscompile -gen:client -d build -classpath build config-wsdl.xml
here im getting Error:
error parsing configuration file: XML parsing error: com.sun.xml.rpc.sp.ParseException:10: XML declaration may only begin entities
Please help me out.
Many thanks in advance,
KaceeCan i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.
-
How to create the sales order using BAPI's ....?
Hi Guru's,
could you please provide how to create the sales order using BAPI's .....i need step by step process and please provide the details from scratch....basically i don't have basic knowledge on this....please provide required inputs ....:)
thanks in advance
Srinivas......Hi Guru's thanks for your inouts and your valuble time...
please find the program logic below...
*& Report ZAREPAS30
REPORT zarepas30.
DATA : gs_vbeln TYPE vbak-vbeln,
gs_order_header_in TYPE bapisdhd1,
gs_order_header_inx TYPE bapisdhd1x,
gt_order_items_in TYPE STANDARD TABLE OF bapisditm,
gwa_itab1 TYPE bapisditm,
gt_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
gwa_itab2 TYPE bapisditmx,
gt_order_partners TYPE STANDARD TABLE OF bapiparnr,
gwa_itab3 TYPE bapiparnr,
gt_return TYPE STANDARD TABLE OF bapiret2,
gwa_itab4 TYPE bapiret2.
Sales document type
PARAMETERS: p_auart TYPE auart OBLIGATORY.
Sales organization
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
Distribution channel
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
Division.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
Requested Delivery Date
PARAMETERS: p_edatu TYPE edatu OBLIGATORY.
Sold-to
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
Ship-to
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
Material
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
Quantity.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
Plant
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
Start-of-selection.
START-OF-SELECTION.
Header data
Sales document type
gs_order_header_in-doc_type = p_auart.
gs_order_header_inx-doc_type = 'X'.
Sales organization
gs_order_header_in-sales_org = p_vkorg.
gs_order_header_inx-sales_org = 'X'.
Distribution channel
gs_order_header_in-distr_chan = p_vtweg.
gs_order_header_inx-distr_chan = 'X'.
Division
gs_order_header_in-division = p_spart.
gs_order_header_inx-division = 'X'.
Reguested Delivery Date
gs_order_header_in-req_date_h = p_edatu.
gs_order_header_inx-req_date_h = 'X'.
gs_order_header_inx-updateflag = 'I'.
Partner data
Sold to
gwa_itab3-partn_role = 'AG'.
gwa_itab3-partn_numb = p_sold.
APPEND gwa_itab3 TO gt_order_partners .
ship to
gwa_itab3-partn_role = 'WE'.
gwa_itab3-partn_numb = p_ship.
APPEND gwa_itab3 TO gt_order_partners .
ITEM DATA
gwa_itab2-updateflag = 'I'.
Line item number.
gwa_itab1-itm_number = '000010'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
Line item number.
gwa_itab1-itm_number = '000020'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = gs_order_header_in
ORDER_HEADER_INX = gs_order_header_inx
IMPORTING
SALESDOCUMENT = gs_vbeln
tables
RETURN = gt_return
ORDER_ITEMS_IN = gt_order_items_in
ORDER_ITEMS_INX = gt_order_items_inx
order_partners = gt_order_partners.
Check the return table.
LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error occured while creating sales order '.
ELSE.
Commit the work.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Document ', gs_vbeln, ' created'.
ENDIF. -
How to create web services in java?
Hi,
I am a newbie to java webservices. Can anybody tell me how to create web services in java?
Any tutorial link or step by step doc would be useful.
Appreciate your help in this regard.
Thanks in advance.
naymo01.Creating web services in Java appears to depend highly upon the server you intend to use.
Here's a tutorial: http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html
Maybe you are looking for
-
Re-install OSX without losing Windows7 partition? (preserving Bootcamp)
Recently my computer stopped booting into mac OS (apparently unfixable, details on that deduction are below). The question: I plan to reinstall MacOSX (from my startup disc). However, I'd like to be sure that this won't destroy Bootcamp's partitionin
-
Issue with Anlytical Functions,Ref Cusor and Bulk Collect
Hi All pls go through the following code declare type salt is table of emp.sal%type index by binary_integer; st salt; type refc is ref cursor; rc refc; begin open rc for 'select max(sal) over (Partition by deptno) as Sal from emp'; fetch rc bulk coll
-
Hi, In my report opening balance has to come the last closing balance . The last closing balance is the last time executed the report. Please tell me how to do the report. thanks venkat
-
Recruitment: Where to store job description???
Hi, we're implementing the SAP recruitment solution (without e-recruiting) in SAP ECC 6 (without any EHP). We want to have the master data (vacancy, advertisment, job description) in SAP and publish it via WS to our corporate website which contains a
-
One Temp Tablespace vs 2 Temp Tablespaces in a Group
I run a massive group by that generally takes up about 325GB of temp and on the system that it works on I have 1 tablespace this size that it works on, but I'm building a new system that has my Temp tablespaces on much faster disks, but I was trying