How 2 read all the line of a sales order text ID plz
Dear all
I have the following to read sales order text of single line of limited char(40)
TIDNO = '0003'.
CONCATENATE SSORD
LIPS-POSNR
INTO TNAME.
TOBJT = 'VBBP'.
PERFORM FINDTEXT.
LOOP AT MSLINES.
WA_ITEM-PACKTYP = mslines-tdline(40).
EXIT.
ENDLOOP.
How do i read mutiple lines plz tell me ?
Thnx
Moni
Message was edited by: md monirujjaman
Hi Md,
sorry I don't understand your question, can you explain more ?
Regards
Frédéric
Similar Messages
-
How to make the line items of sales order cannot be deleted.
Hi All,
Is there any Enhancement spots or user-exits which make the line items of sales order cannot be deleted if item category is 'TAN'.
Thanks in Advance,
Sudhakar Reddy .AHi All,
If you doesn't want to delete sales order line items then we have write in the Include Program which has mentioned below and in the form .....endform.
Program Name : Include MV45AFZB
_Example:_
form userexit_check_xvbap_for_delet using us_error
us_exit.
IF .......
US_EXIT = CHARX.
ENDIF.
endform. -
How can i open the directory/folder and read all the files inside it in order and then close it? any example would be nice.
thanksIn the File I/O>>Advanced File Functions Palette is a function named "List directory". This function will give you two arrays. One contains the names of all subdirectories the other the names of all files. If you want to sort them by name use the array sort function. If you want to sort them by another attribute use the File/Directory Info function to get more data. Use a cluster which contains the attribut to sort and the original index of the name. Then sort this array.
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions -
How to clear the delivery group in sales order?
Dear All:
My sales order is auto created from CRM by BAPI, but in vbap table, the GRKOR field is 001, only one order , how to clear the delivery group in the sales order ?
Regards
Peter.Thread Locked - Reason Duplicate Post
How to clear the delivery group in sales order?
Please dont post the same query twice. Continue all your queries in one thread
G. Lakshmipathi -
How to pack the More than one sales order delivery qty in one packing
Hi Folks,
How to pack the more than one sales order quantity combinely during packing?
Thansk in advance and points wil be rewarded for the reply.
Best Regards
SrinivasPacking is done during Delivery.
In Sales order also Packing function is available but as a Packing proposal.
So actual packing is done in Delivery.
When you process several sales orders together, the sales order items having same Ship-to-party, Shipping point, Route, Delivery due date & Incoterm are combined into one Delivery in the standard system.
In the delivery overview screen,do the picking by subsequent function rom the menu bar, you will get a button "PACK", click on this system will take you to the packing screen.
In the packing screen, give the packaging mterial number, select the materials to be packed, select the packaging material also and the click on the "PACK" button. -
How to change the Profit Center in Sales Order
Hi Gurus,
Previously they setted the profit center (YB999) in sales order, now i want to change the profit center and need to give the amount into this profit center 100500.
So, could you guide me how to change the profit center in sales order.
Thank you for your replies.....
Thanks & Regards,
Chandrababu.B
Edited by: Chandrababu Naidu on May 25, 2011 12:44 PMHi
If this SO is processed partially - i.e. transactions happened - You cant change it
You can use ABAP and change it in Debug mode, but not advisable... Better to short close the SO and open a new SO for Balance qty
br, Ajay M
Edited by: Ajay Maheshwari on May 25, 2011 5:10 PM -
How to make the status of a sales order complete of which PART DELIVERY
How to make the status of a sales order complete of which PARTIAL DELIVERY has already done. <b>(Assigning rejection status not accepted)</b>
Hi Gyana
There is no document with me. But I can confidently say that because I am using this functionality.
In my case I have created a Order Reason as "Short Closed". once you short close this order only the balance quantity gets rejected (provided you have already made previous delivery and PGI).
Try it in one of your test clients if you have. Once it is short Closed it wont also show in the orders due for processing in Production.
Also you can generate reports based on this if your customer wants to know how many order he has short closed, qty of item short closed etc.
Try it.
Rgds
Sunil -
How can i read all the lines from a text file in specific places and use the data ?
string[] lines = File.ReadAllLines(@"c:\wmiclasses\wmiclasses1.txt");
for (int i = 0; i < lines.Length; i++)
if (lines[i].StartsWith("ComboBox"))
And this is how the text file content look like:
ComboBox Name cmbxOption
Classes Win32_1394Controller
Classes Win32_1394ControllerDevice
ComboBox Name cmbxStorage
Classes Win32_LogicalFileSecuritySetting
Classes Win32_TapeDrive
What i need to do is some things:
1. Each time the line start with ComboBox then to get only the ComboBox name from the line for example cmbxOption.
Since i have already this ComboBoxes in my form1 designer i need to identify where the cmbxOption start and end and when the next ComboBox start cmbxStorage.
2. To get all the lines of the current ComboBox for example this lines belong to cmbxOption:
Classes Win32_1394Controller
Classes Win32_1394ControllerDevice
3. To create from each line a Key and Value for example from the line:
Classes Win32_1394Controller
Then the key will be Win32_1394Controller and the value will be only 1394Controller
Then the second line key Win32_1394ControllerDevice and value only 1394ControllerDevice
4. To add to the correct belonging ComboBox only the value 1394Controller.
5. To make that when i select in the ComboBox for example in cmbxOption the item 1394Controller it will act like i selected Win32_1394Controller.
For example in this event:
private void cmbxOption_SelectedIndexChanged(object sender, EventArgs e)
InsertInfo(cmbxOption.SelectedItem.ToString(), ref lstDisplayHardware, chkHardware.Checked);
In need that the SelectedItem will be Win32_1394Controller but the user will see in the cmbxOption only 1394Controller without the Win32_
This is the start of the method InsertInfo
private void InsertInfo(string Key, ref ListView lst, bool DontInsertNull)
That's why i need that the Key will be Win32_1394Controller but i want that the user will see in the ComboBox only 1394Controller without the Win32_Hello,
Here is a running start on getting specific lines in the case lines starting with ComboBox. I took your data and placed it into a text file named TextFile1.txt in the bin\debug folder. Code below was done in
a console app.
using System;
using System.IO;
using System.Linq;
namespace ConsoleApplication1
internal class Program
private static void Main(string[] args)
var result =
from T in File.ReadAllLines(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "TextFile1.txt"))
.Select((line, index) => new { Line = line, Index = index })
.Where((s) => s.Line.StartsWith("ComboBox"))
select T
).ToList();
if (result.Count > 0)
foreach (var item in result)
Console.WriteLine("Line: {0} Data: {1}", item.Index, item.Line);
Console.ReadLine();
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my webpage under my profile but do not reply to forum questions. -
How to get Characteristic Values assigned to the line item of Sales Order?
Hi,
I want to get the Characteristic Values( Variant Configuration )assigned to First Line Item of Sales Order.
I was using the Fn. Mod.: VC_I_GET_CONFIGURATION_IBASE,
this fn. mod. giving all the Characters but not the assigned characteristic values.
Is there any other way to find characteristic values of sales order.
Thanks,
vinayak.
Message was edited by: vinayaga sundaramFor example, please see this example program.
It lists the characteristic names, the values, and the description of the values which are tied to a sales document.
report zrich_0001.
* Internal Table for Characteristic Data
data: begin of i_char occurs 0.
include structure comw.
data: end of i_char.
data: xcabn type cabn.
data: begin of xcawn,
atwtb type cawnt-atwtb,
end of xcawn.
data: xvbap type vbap.
parameters: p_vbeln type vbap-vbeln,
p_posnr type vbap-posnr.
start-of-selection.
select single * from vbap into xvbap
where vbeln = p_vbeln
and posnr = p_posnr.
clear i_char. refresh i_char.
* Retrieve Characteristics.
call function 'CUD0_GET_VAL_FROM_INSTANCE'
exporting
instance = xvbap-cuobj
tables
attributes = i_char
exceptions
instance_not_found = 1.
loop at i_char.
clear xcabn.
select single * from cabn into xcabn
where atinn = i_char-atinn.
clear xcawn.
select single cawnt~atwtb into xcawn
from cawn
inner join cawnt
on cawn~atinn = cawnt~atinn
and cawn~atzhl = cawnt~atzhl
where cawn~atinn = i_char-atinn
and cawn~atwrt = i_char-atwrt.
write:/ xcabn-atnam, i_char-atwrt, xcawn-atwtb.
endloop.
Regards,
RIch Heilman -
How to make the connection between a sale order and an invoice in SDK
Hi,
Im trying to make the connection between a sales order and an invoice using the SDK.
Here is how i create each of them:
Invoice:
public int SalesInvoiceInternalSave(string buisnesspartnerCardCode, DateTime dueDate, double discountPercent, string id, IList<InternalItem> items, ref int invoiceId)
int res = 0;
SAPbobsCOM.Documents invoice_entry = (SAPbobsCOM.Documents)Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
invoice_entry.CardCode = buisnesspartnerCardCode;
invoice_entry.DocDueDate = dueDate;
invoice_entry.DiscountPercent = discountPercent;
invoice_entry.Reference2 = id;
foreach (InternalItem item in items)
invoice_entry.Lines.WarehouseCode = item.Shopid;
invoice_entry.Lines.ItemCode = item.Code;
invoice_entry.Lines.ItemDescription = item.Name;
invoice_entry.Lines.Quantity = item.Quantity;
invoice_entry.Lines.UnitPrice = item.Price;
invoice_entry.Lines.Add();
res = invoice_entry.Add();
return res;
Sales order:
public Boolean SalesOrderInternalSave(string orderId, string buisnesspartnerCardCode, DateTime dueDate, IList<InternalItem> items)
SAPbobsCOM.Documents order_entry = (SAPbobsCOM.Documents)Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oOrders);
order_entry.CardCode = buisnesspartnerCardCode;
order_entry.DocDueDate = dueDate;
foreach (InternalItem item in items)
order_entry.Lines.WarehouseCode = item.Shopid;
order_entry.Lines.ItemCode = item.Code;
order_entry.Lines.ItemDescription = item.Name;
order_entry.Lines.Quantity = item.Quantity;
order_entry.Lines.UnitPrice = item.Price;
order_entry.Lines.Add();
int res = order_entry.Add();
return res == 0;
What do i need to change to get the connection between the two of them?
And how do you insert a amount (not percent) discount into an invoice?
Regards,
TorbenHi,
Add the sale order, then add the invoice. and while adding the invoice please add the following details to the invoce documen
invoice_entry.Lines.BaseEntry = 'Doc entry of the newly created SO
invoice_entry.Lines.BaseLine = 'Line No of the SO
invoice_entry.Lines.BaseType = 17 'For sales order document type.
Hope it helps,
Vasu Natari. -
How to keep the same cost in Sales order and return order?
Hi experts,
When I create a sales order with item cost 100 USD.
Then the cost of item changed and down to 90 USD.
When I do goods return refer to the sales order. How can I keep the same cost (VPRS) 100 USD but not 90 USD?
I made a test the cost in sales order is 100 USD but 90 USD in return sales order.
I want the cost in return sales order is 100 USD.
How can I do?
Thanks,
LanceHi,
Let me tell u my understanding of your requirement, after the sales the cost of the item is changed to some thing low than it was in sales order or invoice, in this scenario you need to transfer the cost of the material as it is in the sale order or invoice (which you are taking as reference to create a Return Order), am i right?
If so, you can proceed like this.
In the copy controls of Billing to Sales orders ( F2 to RE) we have the pricing type N assigned to it ( Transfer pricing components unchanged, New Cost) here the system is reading the change of the cost again from the material master. if you don' t want it to read the material master data again we can have a change try with pricing type 'D' (Copy Pricing elements unchanged), and try now.
let me know the result.
hope this will solve your problem. -
To add the line item in Sales Order
Hi Experts,
I have to insert the line item between two line item in sales order dynamically.
How should i do this.
any idea??
Thanks in Advance.Hi,
I guess you are talking about BOM, sub-items or free goods, wherein after you put in one item the other material defined gets added automatically in the sales order.
That is done with the help of Item Category config by functional person.
Check here for more info
[Item Category|Re: Item Category;
You can also use user exit MV45AFZZ form user_exit_move_to_vbap for a specific logic defined at runtime.
Regards,
Amit
Edited by: Amit Iyer on Aug 26, 2009 10:21 PM -
Query to check item no in all the rows in a sales order
Dear All,
Please assist me with a query which would be able to check the rows in a sales order to see if a particular item no is present. We are using SAP B1 2005 PL50
Kind Regards,
Monil.Hi !
Try this !
if @object_type = '17' and @transaction_type IN ('A', 'U')
BEGIN
if not exists (select t0.docentry from ORDR T0,RDR1 T1 where
t0.Docentry = @list_of_cols_val_tab_del and
t0.Docentry=T1.Docentry and
T1.Itemcode in (select o1.itemcode from oitm o1) and T1.Itemcode = 'XXXXX'
begin
select @error = 1, @error_message = 'Add the item'
end
end
Replace XXXXXX with your itemcode ! -
How to update the condition price in sales order while creating the invoice
Hi,
How to update the condition price in the sales order to carry out the new price while creating the invoice?
While creating the invoice it should update the condition price in sales order.
Thanks,
BalaramNo, pricing is not there in delivery.
I found an exit for VF01transaction where we can update the price in order.
Can you please tell me how to update the price if I have the order, material numbers and conditions number?
Thanks,
Balaram -
How to block the creation of a Sales Orders without a linked Purchase Order
Hi. I'm trying to block the creation of a Sales Order that doesn't have a linked Purchase Order. The first thing I did is using the SBO Transaction Notification as follows:
IF @transaction_type = 'A' AND @object_type='17'
BEGIN
IF (SELECT PoPrss FROM ORDR WHERE DocEntry = @list_of_cols_val_tab_del) = 'N'
BEGIN
SET @error = 1
SET @error_message = 'Purchase Order Missing...'
END
END
This works good. I create the Sales Order, I tick the purchase order field on the logistics tab, I click Add, and then the purchase order window appears...
Then, the problem begins... If I click the Cancel button, the purchase order is obviously not created, but the Sales Order is created.
Can someone tell me how to block the creation of the sales order If the user press the cancel button on the purchase order window (and the purchase order is not created)
As far as I can see, after clicking the add button in the sales order document, the Sales Order is created on the DB. If there's no way of blocking the creation of the Sales Order, can I avoid closing the purchase order window by the SBO_TransactionNotification? (if the purchase order has not been created)
Thanks...Hi Yail,
I think you can't close the purchase order with the stored procedure.
Try to catch the Event when the user click on Cancel button.
So you can list the vents with event logger : https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ede3be37-0e01-0010-1883-cd1b5293473e
You can block the cancel button and force the user to create the purchase order.
Hope i help you
Best regards
Michael
Maybe you are looking for
-
Find record insert date and time in a table
Hi All, I want to get record insert date and time in a table. There is no datetime column in my table. Are there any possibility to get date and time for each record? Thank You
-
Crystal Reports Issue in VS2005
I have a real problem trying to get my report connected to the project data source. I have been using the 'Wizard' to make to connection, however, when I Browse data for a field all it returns is the field size i.e. no data. I have prepared a Word fi
-
Damaged material adjustment posting
Your help is required for the following scenario. Material received from the foreign vendor against import PO. Total qty is entered in SAP through MIGO posting with movement type 101. Partial qty damaged received which are to be settled by the insura
-
Reason for rejection for completed item
Hi All, How to give reajon for rejection for a completed item? Because after delivery of an line item the reason for rejection field is coming in grey mode. So how to make it in change mode so that i can put reasonf for rejcetion. Waiting for valuabl
-
IWeb is not working!!!!!
My iWeb is not working right!!! All the widgets (exept for iPhoto and iMovie) do not work, every time a place the widget it just shows a selection square were the widget should be. The same thing happends when I chose to show the navigation on the to