Getting error in while changing sales order which is created using BAPI
Hi All,
I have created the sales order using BAPI ( BAPI_SALESORDER_CREATEFROMDAT1 ) and i am successfully creating sales order using this BAPI. But while i want to change sales order iam changing Shipping Conditions in Header Data of sales order .its giving an error .can any know any thing about this.
Error mesage : No status object is available for SDI 300082407/10 (Order Number/Item Number)
In Header i am passing these values ...
wa_order_header_in-doc_type = vbak-auart.
wa_order_header_in-sales_org = vbak-vkorg.
wa_order_header_in-distr_chan = vbak-vtweg.
wa_order_header_in-division = vbak-spart.
Do i required to pass the below values ? in Header structure ( BAPISDHEAD1 ).
REFOBJECTTYPE
REFOBJECTKEY
REFDOCTYPE
Regards,
Sudhakar Reddy A
rectified
Similar Messages
-
Error received while changing sales order.
Hi All,
while changing sales order we have received error message "An internal program error has occured.See note 44283".
So could you plesae explain me what needs to be done.
Thanks in advance.To avoid to store inconsistent data in the future, activate the following method of the BADI BADI_SD_SALES:
> 1 - Transaction SE18
> 2 - Definition name: BADI_SD_SALES Menu: Implementation -> Overview double-click on implementation: IM_CORE_CHECK
> 3 - Now you will get an overview on the methods and you see also that the implementation IM_CORE_CHECK is inactive
> 4 - Press the change button and activate
This check works in the following way:
> 1 - if the number of items is less than 10 and there is an inconsistency the system will not store the data and an A-message will occur.
> 2 - If the number of items is greater than 10 and less than 50 and there is an inconsistency the data will be stored and an I-message will occur.
> 3 - if the number of items is greater than 50 there is no check because performance.
Edited by: Gerard Magorrian on Aug 6, 2010 4:01 PM -
Getting error IMPORT_WRONG_END_POS while changing the order
Hi All,
in Capital investment order, i am trying to change the operation data for service (PM03) for which PR has been created already,
i am getting abap runtime error.
FM is active for order type and PO has not been created yet.
Runtime Errors IMPORT_WRONG_END_POS
Except. CX_SY_IMPORT_MISMATCH_ERROR
and these are the problem lines.
195 IMPORT BANF_HHM FROM MEMORY ID 'BANF_HHM'. "956751
>>>>> IF l_order_fistl <> BANF_HHM-fistl OR "956751
197 l_order_fipos <> BANF_HHM-fipos OR "956751
198 l_order_fonds <> BANF_HHM-fonds OR "956751
199 l_order_fkber <> BANF_HHM-fkber OR "956751
200 l_order_grant <> BANF_HHM-grant. "956751
201 l_FM_changed_to_original_value = YX. "956751
202 ENDIF. "956751
203 FREE MEMORY ID 'BANF_HHM'. "956751
204 IF NOT flg_FM_changed IS INITIAL "note 767333
205 OR NOT l_FM_changed_to_original_value IS INITIAL. "956751
206 IF CAUFVD-flg_hhm IS INITIAL. "note 767333
207 CAUFVD-flg_hhm = YX. "note 767333
208 PERFORM CAUFV_UPD(SAPLCOBH) USING CAUFVD. "note 767333
209 ENDIF. "note 767333
210 * Check, if FM data are allowed for re-derivation"note 767333
211 * (->only allowed, when no purchase order exists)"note 767333
212 PERFORM CHECK_PURCHASE_ORDER_EXISTS "note 767333
213 CHANGING PURCHASE_REQUI_EXISTS "note 767333
214 PURCHASE_ORDER_EXISTS. "note 767333
215 * In case of existing purchase requisitions, "note 767333
We are using 604 release.
Pls help.
SandeepHi
Did you get the solution. We got the same error and nothing we can think of.
Any advise. -
Want to see the sales order which is created with reference
Hi Gurus,
I created a sales order with reference to a contract. I forgot the sales order number and contract number..
how can i search my sales order which is created w.f.t acontract.we dont have the access for VA42, VA45.
cHEERS,
SumithDear Sumith
Go to VA05, click your mouse on "Further sel.criteria", so that you will have some options to choose like "Sales Document Type", "Created by".
You can choose either of these and execute so that it will display the respective document.
thanks
G. Lakshmipathi -
Problem in updating Billing plan while changing Sales order
Hi All,
I am using the BAPI 'BAPI_SALESORDER_CHANGE' to change a Prepaid Sale order.After calling this BAPI ,I am calling the function module <b>'BILLING_SCHEDULE_SAVE'</b> to update the Billing plan of the changed Sale order(Billing plan dates for Billing type ZF1 are changed).
The updated date values are getting reflected in the screen when I view through the transaction VA02 and the values are also updated in FPLT table but the values are not getting reflected in the table VKDFS.
Since the values are not getting reflectedin the table VKDFS the billing date is not correct while we view in the transaction VF04.
Please provide your valuable suggestions for updating the Billing date in VKDFS table.
Thanks in advance for your help.
Thanks and regards,
SivaHi,
I had the same problem. Here is an example code to resolve it:
REPORT ytestfg.
DATA: i_bsid LIKE bsid OCCURS 0,
i_bsid2 LIKE bsid OCCURS 0.
TABLES: bsid.
DATA: doc LIKE vbak-vbeln,
pos(6) TYPE n.
DATA e_fpla LIKE fpla.
DATA e_fplt LIKE fpltvb OCCURS 0 .
DATA: zfpla LIKE fplavb OCCURS 0,
zfplt LIKE fpltvb OCCURS 0.
DATA zfplt2 LIKE fpltvb OCCURS 0 WITH HEADER LINE.
doc = 'G03060619'.
pos = '000010'.
CALL FUNCTION 'SD_SALES_DOCUMENT_READ'
EXPORTING
document_number = doc.
CALL FUNCTION 'SD_SALES_BILLINGPLAN_READ'
EXPORTING
i_vbeln = doc
i_posnr = pos
IMPORTING
e_fpla = e_fpla
TABLES
e_fplt = e_fplt
EXCEPTIONS
no_billingplan_allowed = 1
no_billingplan_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Read the billing plan
CALL FUNCTION 'BILLING_SCHEDULE_READ'
EXPORTING
fplnr = e_fpla-fplnr
I_VFKDAT =
I_BFKDAT =
TABLES
zfpla = zfpla
zfplt = zfplt
Upddate the ZFPLT2 table with the new values
MOVE zfplt[] TO zfplt2[].
READ TABLE zfplt2 INDEX 1.
zfplt2-afdat = '20080927'.
Very important to set field updkz = 'U' ***
zfplt2-updkz = 'U'. "--> UPDATE!!
MODIFY zfplt2 INDEX 1.
CALL FUNCTION 'BILLING_SCHEDULE_SAVE'
TABLES
fpla_new = zfpla
fpla_old = zfpla
fplt_new = zfplt2 " --> NEW
fplt_old = zfplt.
CALL FUNCTION 'SD_SALES_DOCUMENT_SAVE'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Regards,
Edited by: PHO_BA on Mar 9, 2009 5:28 PM -
Upgraded 2007 to 8.8 PL15 and get error message when opening sales orders
Hi , I have upgraded an SBO system from 2007 to 8.8, PL15 and I get an error message whenever I recall a sales order entered after June 9th 2010. I do not get any error messgas on orders before that date. I can add new order no problem. Teh error message is:
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value.
'' (CRD2)
I have not got any UDFs that are date type...
Any ideas?
Thanks in advance!
SimonDear Simon,
Issue could be related to SBO_SP_TransactionNotification. Please comment out the code in the store procedure SBO_SP_TransactionNotification (Section: ADD YOUR CODE HERE)
and try to reproduce the issue again.
Regards,
Ladislav Meszaros
SAP Business One Forum Team -
Error message while printing sales order
The following message was displayed while trying to print a sales order from a particular computer. Logging in on another computer with the same credentials worked fine. any thoughts?
Error in file Temp (bea4fc21-346f-4d31-93d6-8260b04be0a4)-(B002A516-3EB2-47FF-BAE7-3941126D5257).rpt:
Error in formula Record Selection:
‘(OCTG.GroupNum) = (?Pm=OQUT.GroupNum)’
This field name is not known
Details: errorKindHi,
Similar error found with different layout. Check SAP note,
1830583 - Error message pops up when printing or previewing
marketing documents with items managed by batches via CR layouts
Thanks & Regards,
Nagarajan -
USER IS GETTING ERROR MESSAGE WHILE DOING PM ORDER COLLECTIVE CONFIRMATION
Dear,
i have query from my client that user is getting error message " no status object is available for cre o/o/o while doing pm order confirmation. My client is using sap MRS . I Recommend the client to run program ZKBEDREP in se38 and still they are facing the same error.Can any body help me in solving this.Hi,
Please see if this thread helps
System status not avilable for one of the component - Conf. can't be done
Regards, -
Sales Order which automatically creates Stock Transfer Order
Hi All,
I've the following configuration requirement....
-- A semifinished good SF1 will come to my company plant... (Stock Transfer)
-- This SF1 will get converted to SF2 (another semifinished good) inside my company. As a by-product Scrap S1 will be generated.
-- This SF2 will be transfered to vendor for external processing and producing Finished Good FG.
-- This FG will go to customer directly from the vendor.
My requirement is to create third party sales order for FG which in turn trigger PR->PO for FG. This will trigger a stock transfer for SF2 from plant to vendor. For this it will trigger a stock transfer of SF1 from plant (outside) to plant (my company). All this needs to happen when I save sales order for FG. Once the FG is saved, if I go to MD04 (stock requirements list), it should show stock transfer order for SF1, stock transfer order for SF2.
Now I've created SF1, SF2, S1 and FG in material master. Also created Customer C1 and other necessary details such as organizational units, partners etc.
Also I've created BOM for SF2 which includes SF1 and S1 and another BOM for FG which includes SF2 only.
At this moment when I create a sales order for FG and save (third party sales order), the PR is getting generated for FG. But for further levels of processing is not happening. I know that manually these stock transfers could be done. But I want this to happen automatically when I save the sales order for FG.
Please let me know what would be the ways to configue this.
Thanks in advance.As per your thread,
1- SF1 transferred from Plant (P1)- to Plant (P2) - Cab ne mapped through STO Process / Transfer Posting from Plant-Plant(Mov type 301)
2- for this SF1, internal processing will be done in Plant-P2 to convert SF1 into SF2 in resuitl Scrap S1 will generate- Internal Production process (SF1 BOM - SF2 & S1 as child items)
3- Issuing SF2 to Vendor for further processing to convert into FG - Subcontracting Process ( SF2 - Input Material / FG - Output material)
4- Issuing FG directly from Vendor to Customer, based on Customer Order - Third party Order Processing.
As you know, through Configuration its difficult to achieve this. You may need to use the BAPI's to auto trigger these process one after the other. Still you should check feasibility. -
Sales order for variant material using BAPI "BAPI_SALESORDER_CREATEFROMDAT2
Hi,
I am using BAPI "BAPI_SALESORDER_CREATEFROMDAT2" for creating salesorder for variant configuration material. I am able to create a salesorder when have only one variant material, However when i have more than one variant material getting errors. Can some one tell me how to fill the material data in the config tables provided in the BAPI.
Thanks.Hai Vinit
Check the following Code & also Check the following Standard Programs
L2032U12
LCRMAU01
LCRMAU11
LZOC1U01
MWWMJF32
RBUS2032
Structures for order header
DATA: l_order_header_in LIKE bapisdhd1,
l_order_header_inx LIKE bapisdhd1x,
Tables for order items
li_order_items_in TYPE STANDARD TABLE OF bapisditm,
li_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
Order partners
li_order_partners TYPE STANDARD TABLE OF bapiparnr,
*Schedule lines
li_ORDER_SCHEDULES_IN TYPE STANDARD TABLE OF BAPISCHDL,
li_ORDER_SCHEDULES_INX TYPE STANDARD TABLE OF BAPISCHDLX,
*-condition type
li_ORDER_CONDITIONS_IN TYPE STANDARD TABLE OF BAPICOND,
li_ORDER_CONDITIONS_INX TYPE STANDARD TABLE OF BAPICONDX,
Return table from bapi call
li_return TYPE STANDARD TABLE OF bapiret2,
Sales document number
l_vbeln LIKE bapivbeln-vbeln,
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = l_order_header_in
order_header_inx = l_order_header_inx
testrun = 'X'
IMPORTING
salesdocument = l_vbeln
TABLES
return = li_return
order_items_in = li_order_items_in
order_items_inx = li_order_items_inx
order_partners = li_order_partners
ORDER_SCHEDULES_IN = li_ORDER_SCHEDULES_IN
ORDER_SCHEDULES_INX = li_ORDER_SCHEDULES_INX
ORDER_CONDITIONS_IN = li_ORDER_CONDITIONS_IN
ORDER_CONDITIONS_INX = li_ORDER_CONDITIONS_INX.
Thanks & Regards
Sreenivasulu P -
How to create a Sales Order with external number using BAPI
Hi People,
I am wonderning how to create Sales order using external number range by BAPI (SALESORDER_CREATEFROMDAT202).
I tried search but could not succeed in finding the solution.
Please share if anyone has some info.
Thanks in advance.
Regards,
PraveenAs per my understanding, the BAPI
SALESORDER_CREATEFROMDAT202
mentioned by you, is not BAPI. In fact, that is basic IDoc Type. For processing an Inbound IDoc, we use FM IDOC_INPUT_ORDERS.
If you want to create sales order other than IDoc, refer FM BAPI_SALESORDER_CREATEFROMDAT2. There you can provide external sales order no in SALESDOCUMENTIN. In addition to that check whether your sales doc type is relevant for external number range or not. If yes. then make sure you are providing external number according to the number range maintained.
If you still have any concerns, please revert back.
Thanks, JP -
Problem while changing Sales order using 'BAPI_SALESORDER_CHANGE'
Hi all,
Below is my code to update delivery block value:
FORM call_bapi_salesorder_change .
DATA: iv_bapi_view LIKE order_view.
DATA: gt_sales_doc TYPE STANDARD TABLE OF sales_key, " Document Numbers to Be Selected
gt_items TYPE STANDARD TABLE OF bapisdit. " Order Item Data for Document Numbers
*************************************************************8
DATA:order_headers_out LIKE bapisdhd OCCURS 0 WITH HEADER LINE.
DATA:order_header_inx LIKE bapisdh1x.
DATA: lv_salesdocument LIKE bapivbeln-vbeln.
data: lv_matnr(10) type c.
DATA:
gt_schdule TYPE STANDARD TABLE OF bapischdl, " for gl date & load date
gt_schdulex TYPE STANDARD TABLE OF bapischdlx, " for partner role and partner function.
gt_return TYPE STANDARD TABLE OF bapiret2,
gt_itemin TYPE STANDARD TABLE OF bapisditm,
gt_iteminx TYPE STANDARD TABLE OF bapisditmx ,
gt_bapisdh1 TYPE STANDARD TABLE OF bapisdh1.
DATA:gs_head_bapi TYPE bapisdh1x,
gs_schdule TYPE bapischdl,
gs_schdulex TYPE bapischdlx,
gs_return TYPE bapiret2,
gs_itemin TYPE bapisditm,
gs_iteminx TYPE bapisditmx,
gs_bapisdh1 TYPE bapisdh1.
CLEAR : gt_schdule,gt_schdulex,gs_return.
REFRESH gt_return.
gs_head_bapi-updateflag = 'U'.
SORT gt_final BY vbeln.
CLEAR gs_vbep.
REFRESH gt_vbep[].
CLEAR gs_final.
LOOP AT gt_final1 INTO gs_final.
gs_itemin-itm_number = gs_final-posnr.
*move gs_final-matnr to lv_matnr."qx94162
gs_itemin-material = gs_final-matnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = gs_final-matnr
IMPORTING
output = gs_final-matnr.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lv_matnr
IMPORTING
output = lv_matnr.
gs_itemin-material = lv_matnr.
gs_itemin-material = gs_final-matnr.
gs_iteminx-itm_number = gs_final-posnr.
gs_iteminx-updateflag = 'U'.""changed to I
gs_iteminx-material = 'X'.
" gs_schdule-req_dlv_bl = gs_final-lifsp. " Delivery block
gs_schdule-itm_number = gs_final-posnr.
gs_schdulex-itm_number = gs_final-posnr.
gs_schdule-sched_line = '0001'.
gs_schdulex-sched_line = '0001'.
MOVE gs_final-lifsp to gs_schdule-req_dlv_bl.
gs_schdule-req_dlv_bl = gs_final-lifsp.
gs_schdulex-req_dlv_bl = 'X'. " Delivery block
gs_schdulex-updateflag = 'U'.
gs_bapisdh1-sales_org = gs_final-vkorg.
APPEND gs_schdule TO gt_schdule.
APPEND gs_schdulex TO gt_schdulex.
APPEND gs_itemin TO gt_itemin.
APPEND gs_iteminx TO gt_iteminx.
Append gs_BAPISDH1 to gt_BAPISDH1.
lv_salesdocument = gs_final-vbeln.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = lv_salesdocument
ORDER_HEADER_IN = gs_BAPISDH1
order_header_inx = gs_head_bapi
SIMULATION =
BEHAVE_WHEN_ERROR = ' '
INT_NUMBER_ASSIGNMENT = ' '
LOGIC_SWITCH =
NO_STATUS_BUF_INIT = ' '
TABLES
return = gt_return
order_item_in = gt_itemin
order_item_inx = gt_iteminx
PARTNERS =
PARTNERCHANGES =
PARTNERADDRESSES =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
schedule_lines = gt_schdule
schedule_linesx = gt_schdulex
ORDER_TEXT =
ORDER_KEYS =
CONDITIONS_IN =
CONDITIONS_INX =
EXTENSIONIN =
NFMETALLITMS =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
REFRESH: gt_schdule, gt_schdulex, gt_itemin , gt_iteminx.
LOOP AT gt_return INTO gs_return.
WRITE / gs_return-message .
ENDLOOP .
ENDLOOP.
ENDFORM. " CALL_BAPI_SALESORDER_CHANGE
When I am using material value as 18342 using CONVERSION_EXIT_ALPHA_OUTPUT:
ORDER_HEADER_IN has been processed successfully
Material is not defined for sales org.A101, distr.chan.00, language DE
Error in ITEM_IN 000030
SCHEDULE_IN has been processed successfully
The sales document is not yet complete: Edit data
Sales document 5010000715 was not changed
and when I am using CONVERSION_EXIT_ALPHA_INPUT (000000000000018342)or while debuging when I am changing value to 0018342 :
I am getting below dump:
Runtime Errors DATA_LENGTH_0
Exception CX_SY_RANGE_OUT_OF_BOUNDS
Date and Time 21.10.2010 07:22:17
Information on where terminated
Termination occurred in the ABAP program "SAPLVBAK" - in
"MAP_VBAP_TO_BAPISDIT".
The main program was "RS_TESTFRAME_CALL ".
In the source code you have the termination point in line 168
of the (Include) program "LVBAK001".
The termination is caused because exception "CX_SY_RANGE_OUT_OF_BOUNDS"
occurred in
procedure "MAP_VBAP_TO_BAPISDIT" "(FORM)", but it was neither handled local
nor declared
in the RAISING clause of its signature.
The procedure is in program "SAPLVBAK "; its source code begins in line
99 of the (Include program "LVBAK001 ".
The same dump I am getting while executing this above BAPI from SE37 tcode with the same test data.
but I am able to change it though Va02 tcode.
Edited by: Arora26 on Oct 21, 2010 7:58 AMHi,
have you searched for OSS notes? The note 1137897 looks like related to your problem. It mentions different BAPI but I assume that both BAPI reuse same routines and therefore it might solve your problem as well.
Cheers -
While saving sales order, deleted item resulting in error
Dear All
I am facing an issue while changing Sales Orders.
I have set a check in a user exit that if batch is empty, display an error message. I add try to add a new line item which doesnt have batch. When i try to save, i get a message which is fine.
But when I delete this line item and try to save again, I am still getting message. I am not sure how this is happening.
Kindly advice.
Regards
DineshThere's a field EKPO-LOEKZ (Deletion Indicator in Purchasing Document) for PO, but there's no such field for an SO as per my knowledge. So the only option left to you is to debug the your user-exit while saving the SO and check why its still triggering the error message. May be you can add another condition stating that the line item should have atleast material number filled, in that case if the material number is there and batch is missing, it will show an error msg.
Regards,
Raman. -
Error while releasing Sales Order through VKM1
Hi Gurus,
I got a sales order which has created a credit hold. When I try to release that through VKM1 i am getting the error "Error Determining Posting Period (info structure S008, Variant Z2, RC). Kindly let me what should I do for releasing this.
Thanks in advance.
Regards,
Varadahi,
Goto img->logistics general->logistics data warehouse->updating->updating control->Activate update choose sales and distribution
double click on the infostructure s008 and see the details & if possible select asynchronous only and not synchronous. Check out this.
chan
Message was edited by:
CHAN HARI -
Error while saving sales order
Hi I am encountering below error message while saving sales order:
Warehouse
Specify export data in material master
Then I go to material master to check foreign trade export tab, and I had maintained commodity code export group, country of origin and region of origin, what did I miss? Help.Hi,
Check whether you have activated legal control data for the Sales Order type configuration in Foreign Trade.
If the Order type is activated then the following error message can pop up unless you maintain in material master.
See whether export legal control data is activated or not for the order type.
In IMG Sales and Distribution>Foreign trade>Legal control section
Regards,
Saju.S
Maybe you are looking for
-
Need help retrieving 'backed-up' iWeb files
In anticipation of iweb going away, I backed up my iweb files to an external drive. Now, having purchased a brand new imac desktop computer, it did not come with iweb software. So, how do i "restore" any of my iweb files to the new imac desktop so t
-
FOR CURRENT YEAR ANY RG23C PURCHASE IS THERE THEN THE FOLLOWING ENTRY WILL BE GENERATED: RG23C BED DR.1000 RG23C ECESS DR. 20 RG23C E.CESS DR. 10 RG23 50% HOLD DR.1030 CENVAT CLG. CR.2060 ON 1ST APRIL I WANT TO
-
Dramatic drop in file size - please help?
My CR2 files of about 25MB are being reduced to about 1MB jpg's after going through ACR and PS CC and being saved. Sometimes I crop and sometimes I don't, this is not the reason. Also I choose the save as max file size always. Where am I going wrong
-
No signal when i start computer
hi everyone, i have a compaq 5700f running windows 7, its been a good computer for me until yesterday. While i was using the computer suddenly my screen said no signal, the fans run when i bootup but no keyboard lights, no dvd light blinks and no sig
-
I gave a blacklisted graphics driver for radeon 1950x pro (ATI) that has no available update. From what I can tell, because my driver version are not supported I am suffering from 'glitchy' performances, especially in flash-based websites (eg: the ga