Sales order text is not updating
Hi All,
call function 'SD_SALESDOCUMENT_CHANGE'
exporting
salesdocument = salesdocument
order_header_inx = w_order_header_inx
simulation = testrun
business_object = 'BUS2032'
call_from_bapi = 'X'
tables
return = return
sales_text = order_text
textlines_ex = text_lines.
COMMIT WORK.
I am using above FM for updating Sales order test .I am Passing test in the Prameters textlines_ex = text_lines.
I am Unable to dig what the issue is .Can anyone help me out in this .
salesdocument = Sales Document number
Moderator Message: Even we cant help you, with a question like that. Put more effort into framing your questions.
Edited by: kishan P on Jan 9, 2011 6:56 PM
Sounds like a text determination config issue - have you assigned the text in VOTXN? Have you run the text determination analysis from VA02 in the document?
Similar Messages
-
Sales order qty is not updated in COPA
Dear All,
for Warranty process ; we are using the standard item category - TANN which is working correctly and updates the sales qty in COPA at the time of billing
and today we have created new Z item category-ZTAA ( it is same as standard item category ) but this item category is not posted any COPA values at the time of billing and its posted the COPA at the sales order settlement without sales qty values.
Can you please help me to know the reason for this 2 item category behavior and what can be the missing configuration or setup ? ( pls note i have checked different settings for this both the item categories configuration and the configuration is always same )
Thanks for your quick feedback
Regards
RamuHi Ajay,
yes ; i already checked this settings and the sales order does not have any requirement type.
i think its very strange for me becuase both standard item categories ( without any item type in item categories ) and the behaviour is different ; for your quick reference pls check the below exmaple.
Sales order - 123
Item-10 /TANN
Item-20/ZTAA
COPA results :
for item -10 , COPA is posted at the time of billing with correct qty
for item-20, COPA is posted at the time of sales order settlement without qty.
BR
Ramu -
In the sales order text is not redetermined
Hello
while creating the sales order user enters the sold to party and ship to party after executing the text the user changed the ship to party but the text is not redetermined in the order according to the ship to party it is same as previous ship to party text only. how this text will be redetermined in the order.
Regards,
KishoreHi
The sales order might be incomplete.
Go to Transaction VA02, Edit->Incomplete Log.
Complete the details and then try to create the delivery.
Also, check the Delivery block option in the Sales Tab.
If it has entries, remove the entries.
Save the Sales order and then try to create the delivery.
kindly reward points if it helps!
best regards,
Thangesh -
Sales order delivery date not update on PO delivery confirmation
Hi all,
I have the following issue. When a sales order is created for a material that is to be purchased a purch req is automatically created. Next I create a Po from this Purch req. When I confirm the delivery date to a later date in this po and do this without entering a storage loc in the po, the delivery date in the sales order remains unchanged, which should be adjusted according to the confirmed delivery date in the PO.
When I do this with a storage location, the date is changed in the sales order.
Anybody any ideas on what could be the reason for this?
Thanks,
Kevin.Hi there,
I thumb rule that you have to follow when posting the thread is, to be clear in what you are asking. Looking at the thread posted, can you make out anything? No spaces, no full stops. How will people understand what your query is? Just read back your question & help us understand what does the query mean.
From what you have given, you are saying that in material master MRP views, GR processing time is mentioned as 15 days. What after that? Are you asking of the materials are available before that 15 days & you run an availability check is the delivery date going to change? Is that what you are asking?
If the material is already available on that date, system will confirm the reqested delivery date. If item is not available then system will propose a new confirmed delivery date basing on the availability check. It will not propose a date which is earlier to the requested delivery date. It either confirms the requested delivery date or proposes a confirmed delivery date at a later time.
For eg when the customer requests delivery on the 25th in the sales order, then if material is available, system will confirm 25th as the delivery date. If material is not available,, then it will check item availability & proposes 28th as confimed delivery date. It will never propose 22nd as delivery date.
Regards,
Sivanand -
Sales order change BAPI not updating items Profit center
Dear ,
I am facing the problem in using the BAPI for Item 's profit centre in blank space.
I write down the below code <but it's not at all updating the profite centre .
please ccorrect the code if any required'
TYPES: BEGIN OF file_data ,
vbeln TYPE vbap-vbeln, " order numner
posnr TYPE vbap-posnr, " orderitem
profit_ctr TYPE vbap-prctr, " [profite centre
END OF file_data.
DATA: t_data TYPE STANDARD TABLE OF file_data .
DATA : wa_data LIKE LINE OF t_data.
DATA: t_data_item TYPE STANDARD TABLE OF file_data .
DATA : wa_data_item LIKE LINE OF t_data_item.
**DATA: t_data_item TYPE file_data OCCURS 0.
*DATA: return TYPE STANDARD TABLE OF bapiret2.
*DATA: wa_return LIKE LINE OF return.
DATA: wait LIKE bapita-wait VALUE 'X'.
DATA: s_order_header_in LIKE bapisdh1.
DATA: s_order_header_inx LIKE bapisdh1x.
DATA: BEGIN OF i_order_item_in OCCURS 0.
INCLUDE STRUCTURE bapisditm.
DATA: END OF i_order_item_in.
DATA: BEGIN OF i_order_item_inx OCCURS 0.
INCLUDE STRUCTURE bapisditmx.
DATA: END OF i_order_item_inx.
DATA: BEGIN OF it_return OCCURS 0.
INCLUDE STRUCTURE bapiret2.
DATA: END OF it_return.
***********************selection
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS : file LIKE rlgrap-filename OBLIGATORY.
"ctu_mode TYPE ctu_mode DEFAULT 'N'.
SELECTION-SCREEN END OF BLOCK b1.
*********assign file
AT SELECTION-SCREEN ON VALUE-REQUEST FOR file.
CLEAR file.
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = file
EXCEPTIONS
OTHERS = 1.
DATA: it_text TYPE truxs_t_text_data .
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_field_seperator = 'X'
i_line_header = 'X'
i_tab_raw_data = it_text
i_filename = file
TABLES
i_tab_converted_data = t_data[] " Your internal table of structure of Excel sheet
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
t_data_item[] = t_data[].
DELETE ADJACENT DUPLICATES FROM t_data COMPARING vbeln.
Header update indicator
s_order_header_inx-updateflag = 'U'.
Line items
REFRESH: i_order_item_in, i_order_item_inx.
LOOP AT t_data INTO wa_data.
LOOP AT t_data_item INTO wa_data_item WHERE vbeln = wa_data-vbeln. .
i_order_item_in-itm_number = wa_data_item-posnr.
i_order_item_in-profit_ctr = wa_data_item-profit_ctr.
i_order_item_inx-itm_number = wa_data_item-posnr.
i_order_item_inx-updateflag = 'U'.
i_order_item_inx-profit_ctr = 'X'.
APPEND: i_order_item_in, i_order_item_inx.
ENDLOOP.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_data-vbeln
IMPORTING
output = wa_data-vbeln.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = wa_data-vbeln
order_header_in = s_order_header_in
order_header_inx = s_order_header_inx
behave_when_error = 'P'
TABLES
return = it_return
order_item_in = i_order_item_in
order_item_inx = i_order_item_inx.i already used same But it's not working
s_order_header_inx-updateflag = 'U'.
Line items
REFRESH: i_order_item_in, i_order_item_inx.
LOOP AT t_data INTO wa_data.
LOOP AT t_data_item INTO wa_data_item WHERE vbeln = wa_data-vbeln. .
BAPISDITM
i_order_item_in-itm_number = wa_data_item-posnr.
i_order_item_in-profit_ctr = wa_data_item-profit_ctr.
BAPISDITMX
i_order_item_inx-itm_number = wa_data_item-posnr.
i_order_item_inx-updateflag = 'U'.
i_order_item_inx-profit_ctr = 'X'.
APPEND: i_order_item_in, i_order_item_inx.
ENDLOOP.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = wa_data-vbeln
IMPORTING
output = wa_data-vbeln.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = wa_data-vbeln
order_header_in = s_order_header_in
order_header_inx = s_order_header_inx
behave_when_error = 'P'
TABLES
return = it_return
order_item_in = i_order_item_in
order_item_inx = i_order_item_inx. -
Creating Sales order texts while using BDC session method is not working
Hi All,
I have an existing program which creates sales order using BDC session method.( Actual program uses BAPI to create sales order and in case if any error occurs during creation of sales order BDC session is generated so that user can process it later and i am facing issues in this part of code where it uses BDC)
I wanted to modify this BDC sesion to update the sales order text also. I tried recording VA01 for creationg sales order text unfortunatly it is not capturing the data i am entering in the text fields.
Please suggest if there is any way to create sales order using BDC.
Regards
SheebaHi Madhu,
'=TP_CREATE' is the OK code i am getting for creating TEXTS. But the text entered are not captured in BDC.
Part of BDC program generated for cretaing sales order texts.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=%_GC 128 22'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=TP_CREATE'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=%_GC 128 22'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'=TP_CREATE'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4003'.
perform bdc_field using 'BDC_OKCODE'
'/EBACK'.
perform bdc_field using 'LV70T-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMV45A' '4001'.
perform bdc_field using 'BDC_OKCODE'
'=SICH'.
Regards,
Sheeba -
Mass Update for Purchase Order & Sales Order Text
Hi,
Can be change the Purchase Order & Sales Order Text using MASS.
Regards,Hi,
I am also surprised by the behaviour of the BDC.
This is first time when I am facing the problem since I have been using SAP.
I am able to update the PO Text manually , but BDC is giving the problem for only few Materials.
It does sound stupid, but this is the fact here with me.
Regards,
Edited by: PK on Nov 5, 2009 12:58 PM -
Sales order number in not coming as a text in Accounting Document
Hi Friends,
Sales order number in not coming as a text in Accounting Document in INSTALLMENT BILLING PROCESS
is there any config missing for this doc number
Pl advise me
RajuHI Prem,
Please understand my query.
In VF01 in accounting document we can see the text document field.
Here i need the Sales order number as a Text field.
But it is not coming over here
Pl advise me
Raju -
Sales Order Text not getting copied after configed with tcode VOTNX
Hi All ,
We have configed one of sales order texts to be copied from customer master text at sales org level .
It works fine for some sales org , But for some it does not and says "Text could not be structured " in log .
I tried to debug while creating sales order , But unable to reach the point where the texts are copied .
Any help would be appriciated .
Thanks
VinayWanted to add more thing ,
The log Says that the error is recogized by the sapscript FM INIT_TEXT.
Thanks
Vinay kolla -
Open Sale Order Value (FD33) not getting diminished even after closing SO?
Hi,
Upon Executing FD33 and clicking the status view for a Customer say XYZ , and then choosing EXTRAS-Open Sale Order . Say the value of open sale orders being shown is 75000. Even after closing the open sale orders (By Selecting VA05 and Putting reason for Rejection), and then also the Open Sales Order value is not getting diminished.
What could be the reason ?
Pls help.
Regrds,
BinayakHi Binayak,
As mentioned by you, running of Credit re-org program 'RVKRED77' is the only solution for this problem and it is known problem in SAP.
Some precautions
1. Always run the program in background by scheduling a job.
2. The idle time is around midnight when no user is working on SAP.
3. Some time the job fails as some other program may be updating same tables as this program. In such cases re-schedule the job at different time.
4. You may run the program 'RVKRED88' which will simulate without actual updation of credit values.
Hope this clarifies..
Regards,
Madhu. -
Sales Order number is not showing in MD04
Hi Gurus ,
I have got one case where Sales order number is not showing in MD04 screen . This sales order , line item has already delivered , PGI & billing document also been generated . Moreover accounting document is also been created .As cheeked & found that it is not shwoing in MD04 screen because at the time sales order creation availability check “01” was maintained which has sum up all the requirement in one particular day ( Also as
per SAP note -70408) .
Now because all the subsequent document has been generated for sales order so we can not mark it for “Rejection for rejection “ & to create new sales order with availability check “02” in material master .
Please let me know the possible solution for the same or if any sap note would be required to get the sales order number in MD04 .
Thanks ,
AmanHi Kiran ,
Actually before running the report in “SDRQCR21” in PRD I wanted to run it in “Quality “ .
In quality I am not able to simulate the same .
Please refer below points related to my testing result .
1.Mainatined availability check group “01” .
2 . Created Sales order
3. Check in MD04 screen & as expected sales order was coming blank with negative Qty .
4. Run the MRP which generated PR
5. PR converted to PO & GRN was done which updated the stock
6. Created delivery & checked the same in MD04 . It was also coming blank . No delivery document numbe was showing in screen but it was coming with negative Qty .
7. Done the PGI & blank delivery document number was removed & it become normal .
In PRD .
There are 3 sales order
One sales order is already marked reason for rejection & two sales order delivery , PGI has been done .
But still it is showing blank sales order with negative Qty & after MRP run it is generating the PR also .
I don't why it was showing with negative values .
Please refer attacehed screen shot .
Thanks,
Regards ,
Aman -
Sales order quantities are not copied to Delivery
Hi Friends,
The sales order quantities are not copied to the delivery document. The order type is OR & delivery type is LF.
We are using the BoM, for which a dwelivery group is created in the sales order. The schedulelines are confirmed as there is ample stock in storage location. The scenario is MTS.
The copy control in VTLA is :
At Header level
order req : 001
combination req : 051
header req : 001
header data ext sys : 0
At Item Level for TAP
order req : 102
item data : 101
item data ext sys : 0
business data : 2
update doc flow ( X )
positive/negative : +
At Item Level for TAN
order req : 101
item data : 101
item data ext sys : 0
business data : 2
update doc flow ( X )
positive/negative : +
Please tell the solution
regards,
Yuvaraj.Hi,
When you do the setting for item category, you need to maintain that the item is relevant for delivery. Kindly check.
Regards,
Jn -
Hello Expert,
I would like to know if is there any possibility to display invoice print (PDF) in sales order (Credit/Debit note) as attachment.
Issue: Customer raise the credit note with the reference of invoice, sometimes user don't explain the reason for credit and don't attach any reference document in sales order(credit request).
Customer requirement: Customer want to display reference invoice print (PDF)in sales order(Credit request) for validator so validator can cross check with invoice and validate the credit note.
Could you suggest the best solution?
I am thinking to give mandatory text box (Text determination)at sales order(Credit request)
VipinHi,
You can enable Document Management System (DMS)
Please refer below links for details:
http://scn.sap.com/thread/459101
http://scn.sap.com/thread/2096563 -
Sales Order Stock is not permitted
Hi Gurus,
When I am trying to post the stock againist the Sales Order through movement type 561E ,the system is giving the message that "Sales Order (SOBKZ=) is not provided for this Goods Movement".
After saving this stock is updated with the quantity. After doing PGI the stock is not decrease by the quantity I was issed from the Sales order stock.The stock is stil showing against the Sales order.
Please help me in this regard.
Thanks & Regards
VASUHi,
U r getting that as warning..reason...check ur sales order item category..u have special stock field..which in ur case i assume is blank...and when u try to post the stock to sales order using MB1C..system with obvious reason finds out the difference in special stock(given sales order item category blank meaning unrestricted and manual given E meaning special sales order stock) ...u press enter and system post the stock to sales order
Now when u do post goods issue..for same sales order system check the item category and sees that special stock is blank...resulting reduction of stock from unrestricted rather then special..and ur MMBE shows no updation in sales order stock
Usually..sales order stock conecpt is used in case of individual purchase..where u purchase against sales order and issue from sales order stock OR scenarios like MTO
Hope this clarifies ur doubt
Regards
Jagdish -
Update Production Order Form if Sales Order Form has been updated
Hi Experts, how can you update the "Due Date" in the Production Order form if the "Delivery Date" in the Sales Order form has been updated? I am having problem catching the actual event if the Date was modified. I'm not sure if I'm coding this correctly, but this is what I have so far:
If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE) And (pVal.Before_Action = True)) Then
strSQL = "SELECT DueDate FROM OWOR WHERE DueDate = '" & strDueDate & "'"
orecordset = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
orecordset.DoQuery(strSQL)
End If
Please share your examples.All, thank you for your help. I understand why it is not working now. I was able to accomplish what I was lookin for with the following code (for anyone who was having the same problem as me:
If pVal.FormTypeEx = "139" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_VALIDATE Then
If pVal.ItemUID = "12" And pVal.BeforeAction = False And pVal.ActionSuccess = True Then
oEditText = oForm.Items.Item("12").Specific
myNewDate = ConvertDateString(oEditText.Value, "test")
SODocEntry = oForm.Items.Item("8").Specific.Value
oPdo = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders) '
oRecordSet = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
oRecordSet.DoQuery("SELECT DocEntry from OWOR where OriginABS = '" & SODocEntry & "'")
If Not oRecordSet.EoF Then
oPdo.GetByKey(oRecordSet.Fields.Item(0).Value)
oPdo.DueDate = myNewDate
intResult = oPdo.Update
If intResult <> 0 Then
oCompany.GetLastError(errInt, errString)
oApplication.MessageBox("oApplication_ItemEvent: " & errString)
End If
oRecordSet.MoveNext()
End If
End If
End If
Maybe you are looking for
-
How to activate FaceTime on iPhone & how to ship from USA ?
1st : If i have bought an iPhone 4 from UAE where the FaceTime is locked, can i get it back in Egypt legally (Through vodafone/Etisalat/Mobinil) especially after i have known that this feature is not activated in Egypt ? 2nd : how can i ship an Facto
-
I made a form, then found out that much of the data that needs to be filled out by our data entry personnel (in Adobe Reader) already exists in an Excel file. Is there a way I can set up this form so that my coworkers can import specific records from
-
Dreamweaver 8 problem with database panel
Hi, I am workting with Dreamweaver 8 and WAMP5 1.4.5 (php 5.1 Apache 1.3 MySQL 4.1) I have created a connexion MySQL in Dreamweaver 8 When I open "database" in the application panel I can see the 4 tables of my database but when I click on each table
-
Problem with Mac OS X Lion reinstall - Cannot install on server volume
Hi I have a MacbookPro 2011 that has been upgraded to Lion from Snow Leopard. I can log on and use the computer but I want to reinstall Lion and make a clean start. I have created a rcovery partition on an external drive and booted to this partition
-
Quick Question re: Vintage AUR Packages...
Hi, Just loaded Arch again after a few years, and noticed that a couple of my favorite command line apps had been relegated to the AUR for becoming "out of date." I really liked the apps, so I built them in the prescribed manner, using the -s and -r