Table control in lsmw tcode me01
MY requirement is develope an object in lsmw recording method for tcode me01 .
this tcode has a table control .
how to handle the table control and what will be the logic for that .
where to write the logic?
the source file is one only .
please help me out.urgently
Sri,
just search in SDN search box by giving table control in lsmw you will get hell lot of threads for same.
Amit.
Similar Messages
-
Hi All,
I have used XK01 tcode to upload vendor details as well bank details.Bank details are in Table Control. Here in this table control the number of visible rows are 5. And I did LSMW, recording for one vendor with 5 bank details.
I have taken all the fields in a single row in the file in the sequence of Recording, and the entries in file are uploading into database as well. But while I am giving more than 5 enttries in file, I am unable to update.
Can any one of you navigate me how to upload the entries in file at table control in LSMW.
Best Regards,
Ubedulla.Hi !!
In step 1 of lsmw.
choose IDOC.
Message TYPE CREMAS: BASIC TYPE CREMAS04.
The rest of steps are mostly the same.
The differency is thaht jou have orginaly prepared structure of data.
in step 2. do like this
Source Structures
SVENDOR VENDORS HEADER
SBANKS Banks
(hierarchical structure - SVENDOR to main data SBANKS for banks deatil)
in step 3.
maintain source fields for both structures.
the assign structure in step 4.
for examle like this
E1LFA1M Segment for general vendor data <<<< SVENDOR VENDORS HEADER
Select Target Structure E1LFA1M .
E1LFA1A Segment for standard vendor data - enhancement
E1LFA1H Vendor Master Basic Data: Texts, Header
E1LFA1L Vendor Master Basic Data: Text Lines
E1LFB1M Segment for company code data for vendors SMD <<<< SVENDOR VENDORS HEADER
E1LFBWM Segment for withholding tax types in vendor master
E1LFB5M Reminder data for vendor SMD
E1LFB1H Vendor Master Company Code: Texts, Header
E1LFB1L Vendor Master Company Code: Text Lines
E1LFM1M Segment for purchasing organization data vendor SMD <<<< SVENDOR VENDORS HEADER
E1LFM2M Segment purchasing data for vendor MMS SMD
E1WYT3M Segment for addresses of vendors MMS SMD
E1LFM1H Vendor Master Purchasing Organization: Texts, Header
E1LFM1L Vendor Master Purchasing Organization: Text Line
E1LFBKM Segment for bank details of vendor SMD <<<< SBANKS Banks
E1LFASM Segment for EU tax numbers vendors
E1WYT1M Segment for vendor sub-range MMS SMD
E1WYTTM Segment for vendor sub-range identification SMD
(sorry for formating but it was taken from my ready lesm project).
The rest is mostly the same like with butch input.
In assign files it would be better to creat 2 files - one with vendor master data one with banks.
what you have to do more is to create lsmw ports (LSMW -> settings -> IFOC inbound processing)
br, JACEK -
How to handle table control in lsmw recording method
hi expert please tell me the procedure for how to handle table control in lsmw recording method
Locked for same reason as how to upload data for me01 using LSMW BDC METHOD
Edited by: Matt on May 9, 2011 8:52 AMSri,
just search in SDN search box by giving table control in lsmw you will get hell lot of threads for same.
Amit. -
How to use table control in LSMW
Hello All,
I have requirement to use LSMW , in my using transaction have table control ,I need to pass values in table control . how to use table control in LSMW .Can any one give me the solution for this.
Best regards,
Satya.Note: The recording function records a fixed screen sequence. It cannot be used for migrating data containing a variable number of items or for transactions with dynamic screen sequences!
Tip: It is possible to create a recording via SHDB, generate a program out of this recording, and adopt the program to your needs and registrate the program to be able to use it in LSMW.
Thats means, for creation of project and WBS Elements is not possible through
1. LSMW-BDC (For both CJ01 and CJ20n)
2. LSMW-BAPI (Method: Maintain is not listed )
3. LSME-Standard Batch Direct Input.
Its possible through programmatically(SE38.) either using BAPI Or BDC.
Thanks, -
Handling table control in lsmw
hi,
i need a help to handel table control in lsmw.
i have created two source structure zheader and zitem.
then at the time of maintain structure relations its taking only one structure . means i am able to assign only zheader structure. how can i assign both the strucure zheader and zitem here ?
Thanks.
Regards,
Pooja Joshi.LSMW in table controls
How to use table control in LSMW
LSMW
Handling Table controls in LSMW -
Handling Table controls in LSMW
Hi All,
Need a help regarding LSMW.Is it possible to handle table control using LSMW if the rows are dynamically changing or do we need to use BDC ?
appropriate answers will be rewarded.
Thanks,
Sandeephai sandeep,
check this link...
LSMW TABLE CONTROL
http://www.jt77.com/development1/programming-15871.html -
Hi friends,
Iam doing the LSMW for Source list(ME01) for Materail..
Its a small transaction..Number fields also less compare to other transaction..
Problem is..its completely table control.. how can i give the fields in file format..
How its comming next line for updating in table control.. Any body done the lsmw for table control.please help me..
what kind of precauctions i have to take for that updation in Table control..
regards,
sampathhi,
You can have your own custom programs for LSMW. You need to register you custom program in table through SM30.
SDX0 - Program Definition ( BI or DI )
SDX1 - Program Assignment
SDX2 - Declaring Structures
SDX3 - Declaring field identifiers for structures
You can goto SM30 and can view the standard BI/DI programs definition by using the four digit Obejct Number...
~~Guduri -
Page down functionality in table control BDC-CJ02 tcode
Hi Friends,
I am doing a BDC with Table control for Tcode CJ02.
When I reach certain number of records, say 13, the page down functionality doesnt work.I tried different ways like using the BDC_OKCODE as "=P" and "=P+".Also, I tried doing a recording by pressing the down key in the table contral, in SHDB, but none of them worked.
Refered a post in SDN as well, but it doesnt hold any solution.
Do throw some light on the same to achieve page down functionality for the bdc tcode CJ02.
Thanks in advance.
Shri.Hi,
I already posted an answer to that here Re: BDC scroll down with OK_CODE '=P+':
P+ (=P+ in the BDC) is not a universal function code, but only one which is defined in ABAP lists . So, 99% of time, it doesn't work for all others situations (like yours).
Scrolling a table control is not so easy to do. When you record a page down on a table control in SHDB, you'll get probably a /00 which corresponds to Enter. When you play the recording, it won't scroll. The issue is that "page down" is processed in 2 parts, it changes the "top line" of the table control, and executes Enter. But it's not possible to record/play the "top line" information.
The solution is that the program usually implements a function code:
either "add new line"
or "position at line"
Sometimes, the function code is hidden so you must look at inside the program (or search SAP notes, like here: [SAP note 187946 (No positioning on PRT overview in routing)|https://service.sap.com/sap/support/notes/187946 ])
And sometimes, there's no function code at all, and then you're stuck ! (or use SAP GUI scripting, but it may only work in dialog).
For CJ02, I can't tell how to scroll through BDC, but anyway, there is a BAPI (don't remember the name, search the forum, it will be easy to find it), so you should always prefer them over BDC.
Sandra -
How to handle table controls using LSMW
Hi All,
how to use LSMW to handle table control like header and item details eg. VA01 , ME21 etc. To handle these kind of trnasactions can we use LSMW instead BDC to upload data. Please let me know.
Thanks in advance.
Regards,
KalpanaHi Kalpana,
You can have your own custom programs for LSMW if the standard DI/BI IDOC , BAPI dont meet your requirements.
Its little bit complex. You need to register you custom program in table through SM30.
SDX0 - Program Definition ( BI or DI )
SDX1 - Program Assignment
SDX2 - Declaring Structures
SDX3 - Declaring field identifiers for structures
You can goto SM30 and can view the standard BI/DI programs definition by using the four digit Obejct Number...
<b>AS</b> -
How Scroll Table control in BDC (TCode = SR11)
Hi Gurus,
I'm trying to insert lines in a table control via batch.
Unfortunately I must be able to insert more lines than the table control can show (4 lines at the same time).
I am not able to get the good OkCode trough SHDB.
I tried to add a line via OkCode 'P++' but it didnt worked.
See below a sample of my code.
IF NOT P_L_DATA-SA01 IS INITIAL.
CLEAR L_C_INDEX.
L_C_INDEX = L_INDEX.
CONCATENATE 'ADRCITYCCS-SPARTE(0' L_C_INDEX ')' INTO L_FIELD.
L_VALUE = '01'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
CONCATENATE 'ADRCITYCCS-BUKRS(0' L_C_INDEX ')' INTO L_FIELD.
L_VALUE = P_L_DATA-SA01.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
L_INDEX = L_INDEX + 1.
ENDIF.
IF NOT P_L_DATA-SA04 IS INITIAL.
CLEAR L_C_INDEX.
L_C_INDEX = L_INDEX.
CONCATENATE 'ADRCITYCCS-SPARTE(0' L_C_INDEX ')' INTO L_FIELD.
L_VALUE = '04'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
CONCATENATE 'ADRCITYCCS-BUKRS(0' L_C_INDEX ')' INTO L_FIELD.
L_VALUE = P_L_DATA-SA04.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
L_INDEX = L_INDEX + 1.
ENDIF.
IF NOT P_L_DATA-SA05 IS INITIAL.
CLEAR L_C_INDEX.
L_C_INDEX = L_INDEX.
CONCATENATE 'ADRCITYCCS-SPARTE(0' L_C_INDEX ')' INTO L_FIELD.
L_VALUE = '05'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
CONCATENATE 'ADRCITYCCS-BUKRS(0' L_C_INDEX ')' INTO L_FIELD.
L_VALUE = P_L_DATA-SA05.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
L_INDEX = L_INDEX + 1.
ENDIF.
IF NOT P_L_DATA-SA06 IS INITIAL.
CLEAR L_C_INDEX.
L_C_INDEX = L_INDEX.
CONCATENATE 'ADRCITYCCS-SPARTE(0' L_C_INDEX ')' INTO L_FIELD.
L_VALUE = '06'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
CONCATENATE 'ADRCITYCCS-BUKRS(0' L_C_INDEX ')' INTO L_FIELD.
L_VALUE = P_L_DATA-SA06.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
L_INDEX = L_INDEX + 1.
ENDIF.
L_FIELD = 'BDC_OKCODE'.
L_VALUE = '/00'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
IF L_INDEX = 5.
L_PROG = 'SAPLSZRC'.
L_DYN = '0200'.
PERFORM BDC_DYNPRO USING L_PROG L_DYN.
L_FIELD = 'BDC_CURSOR'.
L_VALUE = 'ADRCITYCCS-BUKRS(04)'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
L_FIELD = 'BDC_OKCODE'.
L_VALUE = 'P++'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
ENDIF.
L_PROG = 'SAPLSZRC'.
L_DYN = '0200'.
PERFORM BDC_DYNPRO USING L_PROG L_DYN.
L_FIELD = 'BDC_CURSOR'.
L_VALUE = 'ADRCITYCCS-BUKRS(02)'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
the 5th line
IF NOT P_L_DATA-SA07 IS INITIAL.
CLEAR L_C_INDEX.
L_C_INDEX = L_INDEX.
CONCATENATE 'ADRCITYCCS-SPARTE(' '02' ')' INTO L_FIELD.
L_VALUE = '07'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
CONCATENATE 'ADRCITYCCS-BUKRS(' '02' ')' INTO L_FIELD.
L_VALUE = P_L_DATA-SA07.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
L_INDEX = L_INDEX + 1.
ENDIF.
L_FIELD = 'BDC_OKCODE'.
L_VALUE = '/00'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
L_PROG = 'SAPLSZRC'.
L_DYN = '0200'.
PERFORM BDC_DYNPRO USING L_PROG L_DYN.
L_FIELD = 'BDC_OKCODE'.
L_VALUE = 'SAVE'.
PERFORM BDC_FIELD USING L_FIELD L_VALUE.
Any idea will be welcomed.
Please try to be clear and precide as I always wen trought several posts wich just not match.
ThanksHi Niyaz,
Sorry but there is no button to add lines to this table control during the bdc recording.
The only way to enter more lines than the default number is to scroll the table control.
Unfortunatly this scroll action is not recorded (no OkCode) during recording.
Any idea gurus ???
Regards -
Screen value of table control in ME21N tcode condiions tab
Hi ALL,
I have a problem in ME21 Tcode .I want to read screen field value of net price of Screen ME21N tcode conditions tab.
when I change tax code in delivery tab then condition tab values changes according to price procedure.I want to read that conditions tab Net price value nothing but unit price (amount field in screen) and need to do validation .
i used the BADI but could not able to find the screen value using DYNP_VALUES_READ fm.
kindly sugest the solution.
regards,
padmaja.Hi
In BADI ME_PROCESS_PO_CUST, method PROCESS_ITEM or in method CHECK, for interface IF_PURCHASE_ORDER_MM, use method GET_CONDITIONS.
For instance in method CHECK
include mm_messages_mac.
data: header type mepoheader,
items type purchase_order_items,
po_line type mepoitem,
line_item type purchase_order_item,
po_condition type mmpur_tkomv,
header = im_header->get_data( ).
items = im_header->get_items( ).
loop at items into line_item.
po_line = line_item-item->get_data( ).
call method line_item-item->get_conditions
importing
ex_conditions = po_condition.
endloop.
I hope don't forget anything.
I hope this helps you
Regards
Eduardo -
Reg:lsmw(table control)
hi friends,
i need some issues regarding lsmw.
how to handle the table control in lsmw?
if it is possible r not? pls tell me urgentlySri,
search with term table control in lsmw in SDN.am sure you will get your answer,.
Amit. -
Dear all,
Could we upload data for table controls in LSMW?
If yes please let me know how to go about it (if possible with an example plz)
Thanks,
Regards,
Beeramyes..it is possible...
-
Data Upload through LSMW In ME01
I have to upload data into ME01 from single file .
I am using recording method but stuck at the table control handling in it.
How can i handle logic for table control in LSMW.
I have read so mant posts on SDN but no one is clear abt it.
File format:
MATNR WERKS VDAT BDAT EKORG
11 211 10.10.2009 10.10.2009 XYZ
11 211 11.11.2009 11.11.2009 XXX
Edited by: sanju on Jan 15, 2010 5:34 AMits not possible with single file
for this you need to pass two files of data
1 ) Header data ZSOURCE_LIST_HEADER Source List Header
MATNR C(018) Material Number
Selection Parameter for "Import/
WERKS C(004) Plant
2) item data ZSOURCE_LIST_ITEM Source List Item
MATNR C(018) Material Number
LIFNR C(010) Vendor Number
EKORG C(004) Purchasing Organiz
WERKS C(004) Plant
VDATU C(008) Valid From
BDATU C(008) Valid to
for this use below LSMW IDOC method
Message Type SRCLST Source List
Basic Type SRCLST01 Source List -
hai experts
how should i implement a table control in LSMW please send me u r seggassions and code also
Message was edited by:
venkat rathnamhai experts my question has not been answered yet please send me answer
Maybe you are looking for
-
LR2 and PS4 - merging to HDR, merge to Panaorama and Edit in Layers not working
Hi, I've recently upgraded from LR to LR2.1 and Photoshop CS to CS4. I've been trying to multi-select images from LR2 and edit them as HDR and Panoramas using the "Edit in->" merging options. None of them seem to work. I can see PS CS4 being opened,
-
Swing?help me...
1 how I build a link to url? I want to build a link in the panel.when click this link,open a IE window to the url,how? 2 how I build a combined shortcut keys? yes,now I have a textfiled,I hope when a user press"ALT+S",the words pressed can be send ou
-
Certificate error while accessing EWS
Hi, While try to access the EWS web service, I get the following error microsoft.exchange.webservices.data.ServiceRequestException: The request failed. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpa
-
Help -Looping in the procedure
Deleting/Closing the Query... Edited by: k_17 on Oct 12, 2011 5:28 PM
-
Module Pool Programming : Screen Fields.
Hello i have 2 fields in a screen. Field1 and Field2 i enter the field1 and want to set the f4 help for second field field2 on the basis of the input in field1. but when i enter field1 and press f4 help for field2, it doesnot work because the field1