Syclo WorkOrderPostSteplet - Problem in BAPI Create
Hi experts,
we are facing error during creation of work order. We customize few field in work order add scree of syclo work mannager. Deploy the application successfully along with the custom code but encountering the following error shown below.
Can any one help to resolve this issue??????????
Thanks
Chigari
Hi Muralidharan Surendran,
We extended the class WorkOrderPostSteplet to add three standard fileds that available in work order BAPI, after this enhancement also running fine with assignment type 2, we are getting error in assignment type 6 only.
But we did not enhance any thing in back end, we are using the standard BAPI&class only.
Thanks
Similar Messages
-
Problem using BAPI to create Service Confirmation in CRM
Good afternoon all.
I have raised this is CRM forum too, just thought it best to ask the broader ABAP community the question too.
We are encountering a problem using a BAPI to create a transaction in CRM, specifically:
I am trying to create a Service Confirmation (BUS2000117) in a CRM system using the BAPI BAPI_BUSPROCESSND_CREATEMULTI.
The BAPI succeeds in creating the header of the transaction, but I cannot make the BAPI create any other data in the transaction such as partners or items.
Just want to be sure that I am not being foolish...has anyone succeeded in using this BAPI to create an error-free Service Confirmation?
Regards
NickI am going to pop this thread into General ABAP forum too.
Nick -
Problem with BAPI BAPI_REQUISITION_CREATE
Hello,
I have problems with BAPI BAPI_REQUISITION_CREATE. I need to create Purchase requisition for services. If I use BAPI BAPI_REQUISITION_CREATE, Purchasing requisition is created, but field NETWR in table EBNK is 0. If I create purchasing requisition manualy using transaction ME51N, field NETWR in table EBNK is filled with correct price.
Can you pls. help me, what do I wrong in calling BAPI_REQUISITION_CREATE?
Thanks®ards,
JirkaNot sure if you got your answer or went to OSS for a resolution. But, as I was searching OSS for my issue, I came across the following note:
Note 1498435 - BAPI_REQUISITION_CREATE: EBKN-NETWR is not updated -
Adobe Acrobat Pro XI problems printing PDFs created from AutoCAD.
Just installed Adobe Acrobat Pro XI and am having problems printing PDFs created from AutoCAD. Printing other PDF created by MS Word works well. Had a similar problem in an earlier version of Pro. The fix I figure out then was to print the PDF file as another PDF. Using the second PDF to print to a plotter typically worked. It does not work for Adoabe Acrobat Pro XI.
Hi presottom
Please refer ; http://helpx.adobe.com/acrobat/kb/troubleshoot-pdf-printing-acrobat-reader.html
or
Let us know more details about it to help you better ?
What is the OS ?
is there any error message , etc .. ? -
Hi Friends,
I am having a problem in BAPI when i am executing the program i am getting a error message like this,
<b>Error message:</b>
144The field MARA-MEINS/BAPI_MARA-BASE_UOM(_ISO) is defined as a required field; it does not contain an entry .
any solutions to the above problem.
I am sending the code along with this mail.
<b>coding:</b>
REPORT ZYC_BAPI_MATERIAL_CREATE .
STRUCTURE DECLARATIONS *
TABLES: BAPIMATHEAD, "Headerdata
BAPI_MARA, "Clientdata
BAPI_MAKT, "Material description
BAPIRET2. "Return messages
data : bapi_mara1 LIKE bapi_mara. "Client Data
DATA:V_FILE TYPE STRING.
DATA:
BEGIN OF LSMW_MATERIAL_MASTER,
MATNR(018) TYPE C, "Material number
MBRSH(001) TYPE C, "Industry sector
MTART(004) TYPE C, "Material type
MAKTX(040) TYPE C, "Material description
MEINS(003) TYPE C, "Base unit of measure
END OF LSMW_MATERIAL_MASTER.
INTERNAL TABLE DECLARATIONS *
*to store the input data
DATA: BEGIN OF it_matmaster OCCURS 0.
INCLUDE STRUCTURE LSMW_MATERIAL_MASTER.
DATA: END OF it_matmaster.
*for material description
DATA:BEGIN OF IT_MATERIALDESC OCCURS 0.
INCLUDE STRUCTURE BAPI_MAKT .
DATA:END OF IT_MATERIALDESC.
*to return messages
DATA:BEGIN OF IT_RETURN OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA:END OF IT_RETURN.
SELECTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-002.
PARAMETERS:P_FILE LIKE RLGRAP-FILENAME OBLIGATORY.
SELECTION-SCREEN END OF BLOCK B1 .
AT SELECTION SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FILE'
IMPORTING
FILE_NAME = P_FILE.
TO UPLOAD THE DATA *
START-OF-SELECTION.
V_FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = V_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = IT_MATMASTER
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
DATA POPULATIONS *
LOOP AT IT_MATMASTER.
BAPIMATHEAD-MATERIAL = IT_MATMASTER-MATNR.
BAPIMATHEAD-IND_SECTOR = IT_MATMASTER-Mbrsh.
BAPIMATHEAD-MATL_TYPE = IT_MATMASTER-MTART.
BAPIMATHEAD-BASIC_VIEW = 'X'.
refresh it_materialdesc.
IT_MATERIALDESC-matl_desc = IT_MATMASTER-maktx.
append IT_materialdesc.
bapi_mara1-base_uom = 'TO'. "it_matmaster-meins.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
EXPORTING
headdata = BAPIMATHEAD
CLIENTDATA = BAPI_MARA
CLIENTDATAX = BAPI_MARAx
IMPORTING
RETURN = IT_RETURN
TABLES
MATERIALDESCRIPTION = IT_MATERIALDESC.
WRITE:/ IT_RETURN-TYPE,
2 IT_RETURN-ID,
22 IT_RETURN-NUMBER,
25 IT_RETURN-MESSAGE.
ENDLOOP.
Regards,
DineshHi
Basic Unit of Measure is required field in the material master
You are not populating it in the Bapi
populate it in the CLIENTDATA
IT WILL SOLVE THE ISSUE.
CLIENTDATA-BASE_UOM = it_matmaster-meins
Reward points if useful
Regards
Anji -
Problem in MSS - Create Requisition
Hi All,
We implementing E Recruitment on EHP4 sp4. we are facing a strange issue in the MSS-Create requisition request scenario.
We are using standard HCM process HR_MSSRCF_REQUISITION.
MSS user is able to create a requisition and send to his manager for approval. His manager can also approve it. But once the requisition is finally approved, the recruiter cannot see
the requisition in the recruiter dashboard
We have checked the workflow log, its finishing without errors.The e-rec infotype table HRP5131 does not have any new entries for Otype NB, But Manager can see his requisitions from MSS-Requisition Overview iview as completed.
Pls let me know if any config is missing? Do we need to run any background job to update the e-rec tables? There's no error message in any stage of process..still recruiters can't see the new requisition.
Regards,
SmitDear Smit,
We are implementing E-recruitment in our Project. We are facing problems with Manger creating requisition page. Its always displaying NO data available.
Can you please let us know if any configuration is to be done for it?
Thanks a lot in advance,
Regards,
Sai -
I created a publisher file, saved it as a pdf. The problem is I created it landscape and it only shows portrait cutting the sides off my document.
Sounds as if you used Microsoft software to make a PDF. If so, and you didn't use Adobe Acrobat ($$), then you need to get help with Publisher -- Adobe Reader only shows what you make.
-
Authorization problem with VF01 "Create Billing Documents"
Dear All,
We face following problem with VF01 "Create Billing Documents".
Transaction: VF01
User: Joe
Authorization of Joe:
VKORG Sales Organization: A, B (authorization object V_VBRK_VKO)
FKART Billing Type: 1, 2 (authorization object V_VBRK_FKA)
The objective for Joe:
Joe is qualified to create bills in
sales org A only for billing type 1 and in
sales org B only for billing type 2.
Joe should not be able to create bills for
sales org A with billing type 2 and in
sales org B with billing type 1.
How can we solve this problem?
We already searched for userexits without any success.
Any help or ideas are very appreciated.
Regards
Markus Wilhelm
Project Manager ERPDear,
There are standard authority-checks based on Sales organization (authorisation object V_VBRK_VKO) and/or Billing type (V_VBRK_FKA).
An option would be to create a new billing type, define specific authorisations and use the new billing type for these documents.
The bad thing is that you would also need a special (new) sales order type, because the billing document type is unique per sales order.
So maybe it is easier to have a different sales organization.
Another option would be to create a new authorization object and check it in the billing documents.
If you wish, you could modify program LV60A005 & LV60A006.
Then you might check various user/customer exits.
Some functions to check: EXIT_SAPLV60A_001/002,
EXIT_SAPLV60B_001 - 008, EXIT_SAPLV60B_010 - 011.
Regards,
R.Brahmankar -
Problem in BAPI 'BAPI_SALESORDER_CHANGE'.
Hi All,
I am facing a problem in BAPI 'BAPI_SALESORDER_CHANGE'. My requirement is as below.
For a particular type of Sales Order i have to update all the ship-to PO.Basically in all these PO's we have to suffix
'old'.
I am pasting the code which I used. I am actually displaying the return message in a table.
The message says 'Schedule Order is saved'.
When i go and check the SO the ship-to PO is not updated.
Also i have one more querry.
Is thsi BAPI to be run for each item or can i collect all items in t_item_in and then call the BAPI.
Please guide me on this.
Thanks in Advance,
Saket.
LOOP AT t_vbkd INTO wa_vbkd.
CONCATENATE wa_vbkd-bstkd_e '-' v_po INTO v_po_ref.
t_item_in-purch_no_c = v_po_ref.
t_item_inx-purch_no_c = v_po_ref.
t_item_inx-updateflag = 'X'.
APPEND t_item_in.
APPEND t_item_inx.
*LOOP AT t_vbak INTO wa_vbak.
v_vbeln = wa_vbkd-vbeln.
w_headerx-updateflag = 'U'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = v_vbeln
ORDER_HEADER_INX = w_headerx
TABLES
RETURN = t_return
ORDER_ITEM_IN = t_item_in
ORDER_ITEM_INX = t_item_inx.
READ TABLE t_return WITH KEY type = 'E'.
IF sy-subrc = 0.
t_output-rmks = t_return-message.
ELSE.
t_output-rmks = t_return-message.
ENDIF.
READ TABLE t_vbak INTO wa_vbak
WITH KEY vbeln = v_vbeln.
t_output-vbeln = v_vbeln.
t_output-auart = wa_vbak-auart.
t_output-vkorg = wa_vbak-vkorg.
t_output-bstkd_e_old = wa_vbkd-bstkd_e.
t_output-bstkd_e_new = t_item_in-purch_no_c.
APPEND t_output.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN =
ENDLOOP.REPORT ZSALESORDER_CHANGE MESSAGE-ID 38.
PARAMETERS: p_vbeln TYPE vbap-vbeln OBLIGATORY, "Order Number
p_posnr TYPE vbap-posnr OBLIGATORY, "Order Item
p_etenr TYPE vbep-etenr OBLIGATORY, "Schedule Line
p_reqqty TYPE bapischdl-req_qty OBLIGATORY. " Order Qty
DATA: i_hdr TYPE bapisdh1,
i_hdrx TYPE bapisdh1x,
i_ret TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
wa_ret TYPE bapiret2.
DATA: BEGIN OF i_sched OCCURS 10.
INCLUDE STRUCTURE bapischdl.
DATA: END OF i_sched.
DATA: BEGIN OF i_schedx OCCURS 10.
INCLUDE STRUCTURE bapischdlx.
DATA: END OF i_schedx.
START-OF-SELECTION.
REFRESH: i_sched, i_schedx, i_ret.
CLEAR: i_sched, i_schedx, i_ret.
i_hdrx-updateflag = 'U'.
i_sched-itm_number = p_posnr.
i_sched-sched_line = p_etenr.
i_sched-req_qty = p_reqqty.
i_schedx-updateflag = 'U'.
i_schedx-itm_number = p_posnr.
i_schedx-sched_line = p_etenr.
i_schedx-req_qty = 'X'.
APPEND i_sched.
APPEND i_schedx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = p_vbeln
order_header_in = i_hdr
order_header_inx = i_hdrx
TABLES
return = i_ret
schedule_lines = i_sched
schedule_linesx = i_schedx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
LOOP AT i_ret.
WRITE / i_ret-message.
ENDLOOP.
http://abap.wikiprog.com/wiki/BAPI_SALESORDER_CHANGE
Edited by: krupa jani on Jul 30, 2009 9:22 AM -
Problem with implicitly created Oracle pipes
Hi, I am having a problem with implicitly created Oracle pipes. I am not sure if this is the correct forum for this topic, but I could not see one which suited better..
I am using Oracle pipes as a commiunication mechanism between processes (some are written in PL/SQL and other in PRO*C).
The general problem I have is that if a timeout occurs during the communication process, I end up with 1 or perhaps 2 implicitly created pipes.
The biggest problem for me is that I am unable to determine if a create is implicitly created (via dbms_pipe.send_message or receive_message). This causes problems, since these implicitly created pipes are left behind and not deleted. I'll show you the basic flow of the processes and you shall see my problem.
server: create request pipe "req_pipe"
server: listen for request on requests pipe.
client: create two pipes for comms with server.
client: send request and the names of the newly created pipes to the server.
server: read request and pipename from request pipe (from this point all comms between the client and server are now done over the 2 pipes the client created).
server: send ack message to client to ensure they are still there (since requests can be queued in the request pipe and clients could have timed out before the request is received)
client: send "i'm still here" ack back to the server.
server: process request and send result back to client.
client: send ack back to server to let server know we have received the response.
server: send ack back to client to show that work is now committed.
OK thats the general event flow. I use the rule, that pipes created by a process are removed by a process. So the client always removes the pipes it created in all situations. But since this can happen at any point we can get in the situation:
client: timeout occurs, delete pipes.
server: send message to client (creates an implicit pipe) and therefor works (no errors raised)
server: do a read for response from previous message. (implicitly creates pipe) (will fail).
Now we have two implicitly created pipes! These pipes will exist until the database instance is shutdown, and in a poorly performing environment, we could get thousands of these pipes lying around... not a good situation.
How can I either stop pipes being implicilty created, or how do I detect if a pipe was implicitly created.
I have tried a couple of things, like using v$db_pipes to check if a pipe exists before doing send/reveive calls but this is FAR to slow to do a select on that view.
We have also looked at keeping a record of pipes created by the client then have some process (perhaps the server) clean up these pipes after some time frame. This is a workable solution but is not favourable since it adds extra overhead having to check these pipes often, and created an extra level of complexity which is not required..
Any suggestions will be greatly appreciated.
Feel free to email me with any suggestions on my email provided below, or just post a reply to this formum..
Many thanks,
Karl Bridger
[email protected]I solved the problem by changing the SOAP massage format from Document/Wrapped to Document/Literal
-
LSMW - BAPI - Create Archive to Upload a Contract
I'm using BUS2014 - PURCONTRACT_CREATE to create contracts with LSMW. My problem is to create more than an item for the same contract. My structure is:
BURKS/LIFNR/EVART/VEDAT/EKORG/EKGRP/WERKS/VPER_START/KDATE/SPRAS/KTWRT/
EVRTP/EPSTP/KNTTP/EMATN/KTMNG/NETPR/Currency/PEINH/LGORT2/MWSKZ/BSTAE
Fore example in my excel file I want to create 3 itens for one contract then my archive will be:
.../ 200(vendor) /...../ 00010 (item) / 300 (material)/...
.../ 200(vendor) /...../ 00020 (item) / 301 (material)/...
.../ 200(vendor) /...../ 00030 (item) / 302 (material)/...
In this way, SAP is creating 3 contracts. Could anyone give me how should I create my structure/archive to upload?
If I create 2 structures (Headr and Item) How can I do the reference to the vendor and itens?
Thanks,
GuizaPrasad,
Thanks, but know I have two structures HEADERDATA and ITEMDATA(below). And two excel files - CONT_HEAD.csv and CONT_ITEM.csv begining with identifier field (ID) like you said. Then I have:
CONT_HEAD.csv - 1 (ID) / MK(Contract type) / 2000 (Vendor) / ......
CONT_ITEM.csv - 1 (ID) / 00010 (Item) / 4000 (Material) / .....
CONT_ITEM.csv - 1 (ID) / 00020 (Item) 4001 (Material) / .....
I did the step 5 Maintain Field Mapping and Conversion Rules but my problem now is in path 7 Specify Files and consequentily 8 Assign Files.
Even if i put data for multiple source structures I cannot associate my two excel files to upload. What should I do?
Thanks,
Guiza -
I imported TestIMletListener.zip into netbeans, tried to run the project and got this error:
C:\[user name]\Documents\NetBeansProjects\TestIMletListener\nbproject\build-impl.xml:468: Problem: failed to create task or type nb-copyliblets
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.
BUILD FAILED (total time: 1 second)
Any idea what went wrong?Hello user12608886,
have a look on this answer. Re: homework review. You can click on the link (in the Netbeans output window) and comment the line out.
cheers
Frank -
BAPI: Create INQUIRY/QUOTATION/SALESORDER- (from data2)
Hi ALL...
We can create
INQUIRY/QUOTATION/SALESORDER
using BAPI (Create from data2)........
there are some stuctures/tables as parameters like:
ORDER_HEADER_INX
ORDER_ITEMS_INX
ORDER_SCHEDULES_INX
ORDER_CONDITIONS_INX
what is use of these structures/tables and what is effect?...
and where i can get detailed documentation of all these Structures/tablesGo to Documentation in the Function module. You will see the description of all the paramters there, and how they would need to be filled.
On the segments you asked, those denote the change indicator
The following entries are available:
' ': Create a new sales document item
I: Create a new sales document item
U: Change an existing sales document item
D: Delete an existing sales document item -
I am facing problem while i create a xls sheet with some Header.
I am facing problem while i create a xls sheet with some Header.
If i give the hed names as FirstName , LastName its comming fine.
FirstName | LastName
--------------------------|------------------------
But when i specify a string like New"Deal , New"approach .
= "New"Deal " | =" New"approach" .
--------------------------|------------------------
Problem is:
It's adding = sign in front of the header name.
I dont want that = to be in front of the headername.
//rep.addColumn((String) itr.next());
The above code is used to add the header name to the xls sheet.
The argument will come as New"Deal
But after seeing xls it has become ="New"Deal "
Edited by: SUNJava2008NY on Jun 12, 2008 11:38 PMWhat is the tree structure created for the property of the componentB?
Can you try the below code in your componentB jsp and check whether you are getting the property value
Resource resource = slingRequest.getResource();
String description = ((String) ResourceUtil.getValueMap(resource).get(
"./description", String.class)); -
Problem triggerring BKPF.CREATED
Hi experts
I'm facing a problem triggerring BKPF.CREATED. I've configured this event with change doc BELEG, In field restriction I've given BKPF-BELNR-* *
But the event is not triggered while FI invoice created thru FB60. I've implemented note 336305 also as per instructions, but still event is not getting triggerred.
Can anyone suggest what can I do to trigger this event.
Thanks..
MoumitaHi Moumita,
Have u checked in SWE2 that For BKPF business object's created method event linkage is there or not???
Pls check..it might be d case.
Thanks,
Neel Thakkar.
Maybe you are looking for
-
Sourcing Style Sheet xsl VO , Print RFQ (Sourcing )
Hello, In Sourcing, when we click on Any PO. We have option to print RFQ. This internally calls PON_SOURCING_XSLFO.xsl Where can i find from which VO data is sent to this.
-
How do I trim the end off my Final Cut Pro X timeline?
When I did my rough, rough cut, my timeline was 10 minutes long. I have since edited my video down to five minutes. Now I have five minutes of dead space trailing my five minute video. How do I snip those five minutes off the end?
-
Looking for Good Article/Explanation on Timezones
Hi, I'm looking for answers about timezones and if anyone could point me to a really good artilce I'd appreciate it. Here's the type of thing I'm looking for... I'm writing an application that creates records in a file. The records are timestamped as
-
Problem acessing webdynpro applications deployed using SDM
Dear All, We have two seperate boxes for ECC 5.0 and (WEBAS + EP). I am trying to run ESS and MSS on portal. I downloaded BP for ESS/MSS 100(for souce cose) and ESS/MSS 60.1(iview and other content) both. I deployed them both through SDM. I maintaine
-
Mission Control: How to change the order of the Apps?
OS X Lion Is it possible, to change the order of the Apps in Mission Control? When I swipe with my 3 fingers, I first get the Apps, witch I started last. Any way to change that? Thanks Mark.