LSMW Recording with multiple lines
I am creating a recording in LSMW for VA02 - Change Sales Order. My source file contains several lines from the same sales order, the sales order number is maintained in one of the columns. The order originates from an IDOC LSMW I will run ahead of the recording. When running batch input the recording only seem to apply to one line.
Is there any way to make the recording take the rows and item number into consideration and give me input for all line items?
/Erik
A recording is static, if you record maintenance of 1 line, you get only one line per order.
If you record 2 lines then you get only 2 lines, and in case you have only 1 line in the source you even get a problem in loading.
For a flexible requirement you cannot use a static recording.
Use the SAP given methods to be flexible.
They provided a direct input, Object 0090 Method 0000 program RVINVB10
and there is also a IDoc with message type SALESORDER_CREATEFROMDAT2
and a BAPI BUS2032
Similar Messages
-
LSMW Recording for multiple line items
Hello Gurus,
I just wanted to know if task list has more than one operation can be loaded thru LSMW recording ? If yes,
COuld anyone tell me the process of recording step by step as I am new to recording and not sure what is the flow.
I have created spreadsheet with some data to test and went into LSMW and assign the mode as recording and also had given the values in the respective tcode and save it..after that do I need to perform all the 14 steps ?
Pls advice
MaheeHi
Please go through the below document. It is difficult to explain you completely.
LSMW while creating first 6 steps need to be once. Later on same LSMW can be used directly from step 7.
The below explain is for some other tcode. but steps will remain same in LSMW for your tcode.
http://www.scmexpertonline.com/downloads/SCM_LSMW_StepsOnWeb.doc -
Unable to create PO with multiple line items through LSMW-BAPI method
Hi All,
I have a requirement of creating PO through LSMW. I can't use LSMW standard batch input program since there are some fileds not available and also it has many limitations. I'm using LSMW-BAPI method ( Business object BUS2012) which create IDOC and uses BAPI_PO_CREATE1 to ultimately post the PO in the system. I am trying to create PO from a single file which contains both Header and Item data.
Now my problem is that everytime PO is being created with Single line item only. Everytime I am giving multiple item data in the source file LSMW is preparing multiple IDOCs for multiple line items. As per my understanding this is happenng since header and item is in the same hierarchy level of IDOC type PORDCR102 and the control record is inserted for every line item in the source file.
It seems that through LSMW-BAPI it is not possible to create PO with multiple line items. Can anybody provide some input regarding this? Thanks in advance.
BR,
Atanu MukherjeeSolved by myself.
Earlier the problem was that LSMW was not being able to recognize items under same header. It was creating new IDOCs every time it gets a new item. To enable this we need to create two structure HEADERDATA and ITEMDATA. Two additional identifier fields with identifier value 'H' and 'I' should be added in these two structures respectively. Then we need one sequential file with the identifiers field followed by the header and Item data. Example:
H~header data
I~item data
I~item data
This would help the standard program to understand what are the items under same header and ultimately create PO with multiple line items.
BR,
Atanu Mukherjee -
LSMW program to upload the sales order with multiple line items.
Dear SD and PP Gurus,
I am new to creating LSMW Program.
I want to create a LSMW program to upload the sales order with multiple line items. I have read on SDN that it can be done on two phases. First Create Header Data than line items. IS IT TRUE??, Or
Is there any procedure by which we can load the sales orders with multiple line items in a single run (part).
I want to use Batch process, not a BAPI or IDOC procedure.
I have created a program with
object 0090
Method 0000
Program Name RVINVB10
Program Type D
Source Structure 1 - For Header and Source Structure 2 for Line Items.
Mapped Field INDET (With Fix Value 1), ORDERTYPE, SALESORG, DISTCHANNEL, DIVISION, CUSTOMER, PONUMBER , DELVDATE, PRCGDATE, PMTTERM
INCOT1 INCOT2 with Source Structure - 1 and
Field INDENT (With Fix Value 2), ITEMNO, MATCODE, MATQTY, SUOM, PLANT, BATCH, AMOUNT with Structure-2
than maintained Structure relation ship, field Mapping, Specified Files, Assigned files, Read Data and other process,
At final stage (Start Direct Input program RVINVB10) it is giving a message - Table name not allowed.
Please tell me where I am wrong.
Thanks in advance.
DSCDear SD Gurus n Experts,
I have solved the above problem. But there is another problem appearing regarding the date format. Now system generating a message: Date . . is not valid.
While I am using Date: YYYYMMDD format in flat file, which is SAP's Standard Format.
In SDN Link: LSMW upload Sales Order using VA01/VA02 I have found that there are some date fields which are mandatory to filled. Here I have mapped
VDATU - Requested delivery date, BSTDK - Customer purchase order date, PRSDT - Date for pricing and exchange rate, BSTDK_E - Ship-to party's PO date, FKDAT - Billing Date, KORDT - Delivery Date,
and PRGRS - Date type is Constant = D
Can any one tell me, where is the priblem.
With thanks,
DSC -
Error After BAPI_PO_CREATE1 with multiple Lines "Enter Account Assignment"
Hi,
I am trying to Post Purchase Orders with Multiple lines using BAPI_PO_CREATE1 and got error
"Enter Account Assignment". This is happening when I post PO with multiple line items.
I am trying the same PO with one record, PO is creating successfully. Do I need to put any additional data.
I am creating PO with Item Category 'D' and Account Assignment 'N' and external number range and internal number range.
Pls let me know, Do i need any additional flags for this.
Thanks,
nainiHello all,
please help!!
I used function BAPI_PO_CREATE1 to create PO with limit item but function returned message error '518 No account assignment exist for service line 0000000000'. Can anyone give me an idea to slove this problem? for your information, I used parameters below to run this function.
POHEADER
POHEADER-COMP_CODE = '1205'
POHEADER-DOC_TYPE = 'GZPO'
POHEADER-VENDOR = '8000001313'
POHEADER-PMNTTRMS = '0001'
POHEADER-PURCH_ORG = '1222'.
POHEADER-PUR_GROUP = 'K05'
POHEADER-CURRENCY = 'THB'
POHEADER-EXCH_RATE = '1.00000'
POHEADER-EX_RATE_FX = ' X'
POHEADER-DOC_DATE = '10.06.2008'
POHEADERX
POHEADERX-COMP_CODE = 'X'
POHEADERX-DOC_TYPE = 'X'
POHEADERX-VENDOR = 'X'
POHEADERX-PMNTTRMS= 'X'
POHEADERX-DSCNT1_TO = 'X'
POHEADERX-PURCH_ORG= 'X'
POHEADERX-PUR_GROUP = 'X'
POHEADERX-CURRENCY= 'X'
POHEADERX-EXCH_RATE= 'X'
POHEADERX-EX_RATE_FX= 'X'
POHEADERX-DOC_DATE= 'X'
POHEADERX-INCOTERMS1= 'X'
POHEADERX-INCOTERMS2= 'X'
POITEM
POITEM-SHORT_TEXT = 'TEST'
POITEM-PLANT = '5005'
POITEM-MATL_GROUP = '606100001'
POITEM-QUANTITY = '1.000'
POITEM-PO_UNIT = 'AU'
POITEM-ITEM_CAT = 'B'
POITEM-ACCTASSCAT = 'K'
POITEM-DISTRIB = ' '
POITEM-PART_INV = ' '
POITEM-PCKG_NO = '0000100001'
POITEMX
POITEMX-SHORT_TEXT = 'X'
POITEMX-PLANT = 'X'
POITEMX-MATL_GROUP = 'X'
POITEMX-QUANTITY = 'X'
POITEMX-PO_UNIT = 'X'
POITEMX-ITEM_CAT = 'X'
POITEMX-ACCTASSCAT = 'X'
POITEMX-DISTRIB = 'X'
POITEMX-PART_INV = 'X'
POITEMX-PCKG_NO = 'X'
POSCHEDULE
POSCHEDULE-PO_ITEM = '00001'
POSCHEDULE-SCHED_LINE = '0001'
POSCHEDULE-DEL_DATCAT_EXT = 'D'
POSCHEDULE-DELIVERY_DATE = '01.09.2006'
POSCHEDULE-QUANTITY = ' 1.000'
POSCHEDULEX
POSCHEDULEX-PO_ITEM= '00001'
POSCHEDULEX-SCHED_LINE = '0001'
POSCHEDULEX-PO_ITEMX = 'X'
POSCHEDULEX-SCHED_LINEX = 'X'
POSCHEDULEX-DEL_DATCAT_EXT = 'X'
POSCHEDULEX-DELIVERY_DATE = 'X'
POSCHEDULEX-QUANTITY = 'X'
POACCOUNT
POACCOUNT-PO_ITEM = '00001'
POACCOUNT-SERIAL_NO = '01'
POACCOUNT-GL_ACCOUNT = '0065903020'
POACCOUNT-BUS_AREA = '70'
POACCOUNT-COSTCENTER = '0010700003'
POACCOUNT-ORDERID = ' '
POACCOUNTX
POACCOUNTX-PO_ITEM = '00001'
POACCOUNTX-SERIAL_NO = '01'
POACCOUNTX-PO_ITEMX = 'X'
POACCOUNTX-SERIAL_NOX = 'X'
POACCOUNTX-GL_ACCOUNT = 'X'
POACCOUNTX-BUS_AREA = 'X'
POACCOUNTX-COSTCENTER = 'X'
POACCOUNTX-ORDERID = 'X'
POSERVICES
POSERVICES-PCKG_NO = '0000100001'
POSERVICES-LINE_NO = '0000000001'
POSERVICES-OUTL_IND = 'X'
POSERVICES-SUBPCKG_NO = '0000100002'
POSERVICES-QUANTITY = ' '
POSERVICES-BASE_UOM = ' '
POSERVICES-GR_PRICE = ' '
POSERVICES-FROM_LINE = '000001'
POSERVICES-TO_LINE = '999999'
POSERVICES-SHORT_TEXT = ' '
POSERVICES-MATL_GROUP = ' '
APPEND POSERVICES
POSERVICES-PCKG_NO = '00100002'
POSERVICES-LINE_NO = '0000002'
POSERVICES-OUTL_IND = ' '
POSERVICES-SUBPCKG_NO = ' '
POSERVICES-QUANTITY = '1.000'
POSERVICES-BASE_UOM = 'AU'
POSERVICES-GR_PRICE = '43,486.21'
POSERVICES-FROM_LINE = ' '
POSERVICES-TO_LINE = ' '
POSERVICES-SHORT_TEXT = 'Demurrage'
POSERVICES-MATL_GROUP = '606100001'
POSRVACCESSVALUES
POSRVACCESSVALUES-PCKG_NO = '0000100001'
POSRVACCESSVALUES-LINE_NO = '0000000001'
POSRVACCESSVALUES-SERIAL_NO = ' '
POSRVACCESSVALUES-QUANTITY = ' '
APPEND POSRVACCESSVALUES
POSRVACCESSVALUES-PCKG_NO = '0000100002'
POSRVACCESSVALUES-LINE_NO = '0000000002'
POSRVACCESSVALUES-SERIAL_NO = '01'
POSRVACCESSVALUES-QUANTITY = '1.000'
POLIMITS
POLIMITS-PCKG_NO = '0000100001'
POLIMITS-LIMIT = '1.00'
POLIMITS-EXP_VALUE = '1.00'
APPEND POLIMITS
POLIMITS-PCKG_NO = '0000100002'
POLIMITS-LIMIT = ' '
POLIMITS-EXP_VALUE = ' '
please help
Thank you for advance -
How to Restrict Single Delivery Date for PO with Multiple Line Items
Dear Experts,
How to Restrict Single Delivery Date for PO with Multiple Line Items.
System needs to through Error Message if User Inputs Different Delivery Dates for PO with Multiple Line Items in ME21N Tcode.
Can we achive this by Some Enhancement in SAP or Not ???
If so how to do it.
Any Inputs is highly appreciated.
Thanks and Regards,
Selvakumar. MHi Selvakumar,
we can resrict the PO to have a single delivery date in all the line items by means of giving a error message or overwiting the delivery date keyed/determined in the line item.
You can use the BADI -> ME_PROCESS_PO_CUST. In which you need to implement the method PROCESS_SCHEDULE.
(for technical aid - This method will be called for each and every PO line item, From the imporing parameter im_schedule we can get all the details of current PO line, even we can change the data in the current PO line. )
Regards,
Madhu. -
Error Message with multiple line
Hi
How to display a error message with multiple line?
Example
Goods movement not possible for material 101
Goods movement not possible for material 102
Goods movement not possible for material 103
is it possible is ABAP? If so please advice me.
Best Regards
AsheekHi Anoop,
You can use same thing like this
I suggest write ur message through this.
First set the obecj.
CALL FUNCTION 'APPL_LOG_SET_OBJECT'
for local memory
FUNCTION 'APPL_LOG_WRITE_MESSAGES'
EXPORTING
OBJECT = OBJECT
SUBOBJECT = SUBOBJECT
UPDATE_OR_INSERT = UPDATE_INSERT_FLAG
TABLES
MESSAGES = MESSAGE_TABLE
EXCEPTIONS
OBJECT_NOT_FOUND = 1
SUBOBJECT_NOT_FOUND = 2
OTHERS = 3.
the call for physical memory
CALL FUNCTION 'APPL_LOG_WRITE_DB'
In this process you only need to provide the Itab with error messages.
Reg,
Arpit -
Partial goods receipt for PO with multiple line items
Hello All,
While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
If partial goods receipt if possible for PO with multiple line items, how do we do it?
Regards,
RJSHi
While doing MIGO, for a PO with multiple line items, if one line item is having error, will we be able to go ahead with goods receipt? Or entire material document is blocked for doing MIGO?
No. You cannot post the MIGO, if even one of the PO line item is having problem or giving error.
We will be doing a development - in case if there is problem in goods receipt (checking of any parameter, and if it is missing - we will be posting error message)...is it possible to ahead with next line item and still post the material document?
If you skip a line irem and do GR with next line item, how will you match quantity & value with the vendor Invoice at LIV ?
If partial goods receipt if possible for PO with multiple line items, how do we do it?
Partial goods receipt is possible for PO line items. That means, if PO has 100 qty for line item 1 then you can do GR for 50 now and 50 later depending on the vendors delivery.
Hope this is what you mean by "Partial Goods Receipt".
Edited by: Arun R on May 10, 2010 2:03 PM -
Word property with multiple lines
Good Morning,
I have a Document Library with an Word template, I fill some properties of the library so I can put this properties in the template. I am trying to write a line break, Any idea?
Thanks.Hi,
According to your post, my understanding is that you want to use Word property with multiple lines.
Per my knowledge, you can remove two updates: KB2760769 and
KB2760758.
The working version of office is 14.0.6129.5000.
Here is a similar thread for your reference:
http://sharepoint.stackexchange.com/questions/77759/inserting-multi-line-text-field-quick-part-from-sharepoint-crashes-word
More information:
Office 2010 Update KB2760758 Incorrectly Checks Multi-Line Columns
As this question is more relate to Word, I suggest you post it to the corresponding forum, you will get more help and confirmed answers from there.
http://social.technet.microsoft.com/Forums/en-US/home?forum=officesetupdeployprevious
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Create ecatt script for one sales order creation with multiple line items
Hi ,
I want to create a ecatt script for one sales order creation with multiple line items. Preferably SAP GUI.
This selection of data will be from an external file/ variants which will have only one row of data in it.
Firstly: I have to sort the external file having same PO Numbers in an order.Group them together.
Second: I have to create sales order for those many line items having same PO Number.
Best Regard
TaranumHi Micky
Firstl you should upload the Line items for a particular sales Order in an Internal table
and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
In case of any issues pls revert back
Reward points if helpful
Regards
Hitesh -
One order with multiple lines in OM is creating multiple invoices
Application: Oracle 11i (11.5.3)
Modules implemented: GL, OM, AR, AP, PO and CM
Business Requirement:
Our client would like to create Order consisting of multiple lines in Order Management.
The Orders created in OM with multiple lines could be booked, picked, released and transferred
over to Accounts Receivable. On transferring over the Orders from Order Management to Accounts
Receivables using Auto Invoice process the Order should create ONE invoice with multiple lines.
Moreover, for the multiple lines created on an invoice deferred revenue could be applied.
( eg. An order is placed for software and support. The support is to be invoiced all at once but revenue deferred to 1/12
recognized each month as revenue is earned.)
Right now we are getting two invoices. It is putting the deferred revenue item on a seperate invoice. Is this normal
functionality? How can I get both on one invoice.
thanksHello Monique,
Well you can have one invoice generated for an order with multiple lines. This is possible by changing some rules in Account Receivables. Use the grouping rules under setups->autoinvoice in AR. You can club your invoices based on any of the columns of ra_interface_lines_all. Hope this works for you.
Arvind -
String Array declaration with multiple lines
I have an array declaration with several indexes where it covers multiple lines.
Please advise if this is the best way to declare an array declaration with multiple lines:
String cityString = "San Diego, Oakland, London, New York, Dublin," +
"Dallas, Milan";
String city[] = cityString.split(",");String[] city = {"San Diego", "Oakland", "London",
"New York", "Dublin", "Dallas", "Toronto"};You can use indentation and line breaks as you like, as usual in Java. -
Download to excel with multiple lines in header
Hi experts,
Is there any Funtion module available to download an internal table contents into Local directory of PC with multiple lines in header.
i.e. let us say i hv internal table of 5 entries with 3 columns...
i need to download this 5 entries into an excel file with some texts above the table contents...
For eg : in the below format...
Sample line 1
sample line 2
sample line 3
colheader1 colheader2 colheader3
item1
item2
item3
item4
item5
Please help.
Edited by: Lakshmiraj on Jul 15, 2010 3:26 AMThere is another option of using OLE automation Please check the link below
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-OLEAutomationusing+MS-Excel
OR
chek for the example program in Tcode DWDM ( OLE example )
OR
Use FM KCD_EXCEL_OLE_TO_INT_CONVERT ( Fm Uses the same OLE automation)
Hope it helps
Anup -
Creating SVG Chart with multiple lines
Hi All,
I want to create a chart with multiple lines.
Ex: I have one emp table with empno, sal and deptno columns.
I want to print deptno in x axis and no of employees on y axis.
I want to print one line for employees with sal > 15000 and one more line for employee with sal =< 15000
So one line will show no of employees with sal more than 15000 for each dept. Similar case for the other line and these 2 lines should be in different colors.
For one line the query will go as
select link, deptno, count(empno)
from emp where sal > 15000 group by null, deptno
Is this possible to draw this chart?
Thanks,
ManojI wasn't able to do something like what you describe, but I was able to do this:
I defined column A of the table as a Header Row, selected the cells in the table, and chose this chart type (2D 2 Axis):
Then I clicked the chart and in the pane at the right checked 'Axis Name' in the Axis tab and added the axis names.
Maybe this can give you an idea of how you can illustrate the relationships that you want to show.
SG -
SQLPLUS: define variable with multiple lines
Hi All,
I need define a varaible with multiple lines as following:
define schema_name = 'aaa',
'bbb',
'ccc';
select * from tb_test where sName in &schema_name;
However, it seems SQLPLUS dose not like the way I define the variable. What I want to do is to select * from tb_test where sName in ('aaa', 'bbb', 'ccc'). I would like to use multiple lines in the define. Any suggestion?
Thanks,Hi,
If the substitution variable contains special characters, such as spaces or single-quotes, then enclosed the whole value in double-quotes, like this:
DEFINE schema_list = "'aaa', 'bbb', 'ccc'"
If you really need linefeeds in the value, then you might have to use COLUMN ... NEW_VALUE (or OLD_VALUE) to set the value. For example:
COLUMN schema_list_col NEW_VALUE schema_list
SELECT '''aaa'', ' || CHR (10)
|| '''bbb'', ' || CHR (10)
|| '''ccc''' AS schema_list_col
FROM dual;
Maybe you are looking for
-
Photoshop CS5.1 Crashing in Image Processor
Having some issues with OSX 10.8.2 on newer imac. Photoshop cs5.1 seems to crash inside the image processor after processing only a few images. Process: Adobe Photoshop CS5.1 [335] Path: /Applications/Adobe Photoshop CS5.1/Adobe Ph
-
Photoshop CS5 Extended - Not starting after many years of use.
I have Photoshop CS5 Extended. I have had this programme several years now, which I use on my Mac. 10.7.5. I have today tried to open an image in my photoshop and is giving me all sorts of trouble. What can the problem be?
-
How to add a link to update firefox ? URL from which it is updated ?
need to add exceptions for DLP system
-
When I start Firefox and if I close and then reopen it the address bar is fine. But when I go the a new address, the menu bar overlays the address bar. Also a small number of pages, such as this one are overlayed with some garbage which is other part
-
Overview of all GOS-elements for an Object
Hi, is there any FM or class to find all GOS elements for an Object f. Ex. EQUI or BUS2080? thanks for Help. Regards, Dieter