LSMW F01
Hi experts,
I would like to create Direct Input program for financial documents (0100) but I've problem with date conversion. BLDAT and BUDAT in text file are in YYYYMMDD format, MONAT is filled from rule, value is correct (06). When I run program I got message:
Posting period 011 0621 is not open (date is 20110621). How it should be converted?
Thanks in advance.
Paul Smuda
Hi,
Check your user profile date format. what you have given in LSMW and in your user profile should be same as per me.
check it if it works give me some points
BR:
Venkat.Gurram
Similar Messages
-
Material PO text upload through LSMW
Dear All,
I have uploaded all the material using LSMW . I have used Direct Input Method. But how can i upload the material PO text. Since it does not get stored in any field , i cannot map in field mapping.
Please suggest how to upload material PO text
Thanks
JohnFor long text, you need to use object 0001. To link it to the PO, please create the long texts for 1 PO manually and see the values.
For your reference, for header texts, the text name is the PO number and the text ID is the long text - for example F01 is Header Text, F02 is Header note, etc (you can see this in configuration).
For item texts, the text name is the PO number and item number.
You need to upload the texts separately.
Lakshman -
Logical filename and logical path in lsmw
Hi all,
I am doing a lsmw for purchasing info record . i created a logicalpath and assigned a physical path to that . i created a logical filename and assigned the logical path .but when i assign that to the lsmw it is throwing error as 'LOGICAL PATH DOES NOT POINT TO PHYSICAL DIRECTORY' .
can anybody provide a solution for that .
Thanks & regards
Magesh anandanhi ,
goto the tcode file then u find the relation between the logical and physical paths ...and their assignment..
hope it will helps u..
regards,
venkat. -
Hello Friends
I want to find if anybody can guide me on how to get all open sales order tables , i want to create a format and create a flat file for uplodading the file , for this what do i need and how do i do it.
Also for creating LSWM can i use the existing one which i can just Assign the New file to the existing one .
Regards.Dear Mehmood,
I want to find if anybody can guide me on how to get all open sales order tables
You want to extract all the open sales orders- which you can get from Table:VBUP key in overall document status in selection screen ( You can use VBUK also- but if there are certain sales orders in which some of the items are completed or few of them open, using VBUK - you will not get exact records)
Secondly, you can get the data by using Query also- in SQVI
design a query with VBAK / VBAP & VBUP
so that from VBAK you can give time period & sales area details
from VBAP - you can enter plant relevant details to filter certain records & item category as well
where as VBUP- filter wth the status.
once downloaded store in flat file.
Now Create LSMW object by using batch input recording method. after mapping the relevant fields,
prepare the flat file in such a - it suits to the upload file / recording file. then you can upload the already downloaded n stored open sales orders in flat file.
Hope this is what you are looking for.
Regards,
ReazuddinMD -
Hi,
I have created a LSMW for updating sales office in the Sales order by using Direct input method.
While specify files;I specified the file saved in the Desktop.While saving I get an error saying 'Logical path is not specified'.
Can anyone tell me why this error occurs and how to rectify this??
Thanks in Advance.
Thanks&Regards,
Sophia XavierHI
Place the cursor on "legacy data" and click on "create" option.
You will get one screen. There, you have input box called "FILE". By selecting drop box or pressing F4 on that, you will get all folders, files available at ur PC.
Search for you file, and double click on ur file. Next give all mandatory information in that screen. Finally press ok and save your "specify screens". It can be saved.
Reward if it is useful.
Thanks.
Siva kumar -
Creation of partner functions for customer master with LSMW
Hello,
I try to create partner functions together with a customer via Batch Input in LSMW.
Object: 0050, method: 0000, program name: RFBIDE00, program type: B.
I use the structure BKNVP (Customer master partner functions) to create a new partner and set values for the fields KTONR and PARVW.
When I start the batch input the fields are filled in correctly in a new dynpro. After the confirmation of these values the dynpro changes back to the partner functions sscreen, but the value for KTONR isn'n being transferred. So I get an error message.
Is it only possible to update partner functions with that BI or what is going wrong ?
Thanks in advance and regards
AlexHi Alex,
Could you specify what error message you are getting?
Thanks!
Rudra -
Error in Creation of Purchase Requisition through LSMW
Hi
I am trying to craete a PR upload prog through LSMW batch input method. In the Specify File option I am giving the TXT file destination.The TXT file is saved at my desktop. But while saving it is givving an error as "No logical path has been specified", Message no. /SAPDMC/LSMW_OBJ_060046
If anyone can help me out.Hi,
I would suggest to create a new one for this as file is placed on your desktop. But you can refer the standard one with which you will get the idea for creation:
Standard logical file name for this is: MM_PURCHASING_REQUISITIONS
In this file location is default in location /usr/sap/trans/data/mmrequisitions, instead of this you can give your converted data file name from step 7 Specify file for e.g PROJECT00_CUTOVER_MB1C_1.lsmw.conv
You can refer or use standard logical path LOCAL_TEMPORARY_FILES for this scene.
Hope this solves your problem.
Regards,
Brajvir -
Dear ALL
Recorded an LSMW for PA40 hiring actions which includes infogroup - [ IT 0000, 0001, 0002, 0105-ZVEN (Sub type)]
This is for external vendor employees hiring actions.
While recording or manually running the process, it is working fine.
When in foregroud or background process, the alternate pernr is getting generated. Say for 1st record , pernr generated is 80023, then for next it is 80025, 80027so on.
Kindly suggest me in this issue.
Thanks
MJHi,
1-you keep no range as external and assign PERNR sequentially so that it remains same as you want it
2-kindly go through the LSMW abain to see what have you assigned in field mapping & conversion rules
3- check one record created thru LSMW and see if next (alternate number gets assigned to Ref PERNR in IT0000)
Check the alternate number to see if anything gets assigned to it.
salil -
Using a Logical File definition in LSMW
Hi all,
is there any way that we can use a Logical File (defined in transaction FILE) as an application server file in the "specify files" step, instead of having to enter the physical path/file?
Thanks in advance,
JustinHello,
Check pages 46 and 47 of the following document :
[http://sapabap.iespana.es/manuales/pdf/lsmw.pdf|http://sapabap.iespana.es/manuales/pdf/lsmw.pdf]
You can only use a logical filename for subsequent programs (example direct input programs) not for the actual input file of your LSMW.
Wim -
LSMW: Error concerning the logical path in Specify Files step
Hi,
I am trying on an ECC 6.0 EHP6 system to upload (open) POs from an existing SAP ERP system. Since I faced some complications in batch input recording method, I decided to go with the standard batch/direct input method.
I selected object 0085 (Purchase Order) and method 0001 (Purchase Order). The program that is used is RM06EEI0. I followed all the usual steps, but in the "Specify Files" step I get the message:
'****.lsmw.conv' does not exist; edit the logical path using transaction FILE
Being aware of both the FILE and SF01 transactions, I created the logical path and file (through the FILE transaction). However, after the modification, I get the message:
Logical file '****' is not assigned to physical file '****.lsmw.conv'
There is also the related SAP Note 753511 (Logical and physical path and file name in transaction LSMW) that refers to this case.Hi,
Click on specify file radio button>Legacy data-on the PC Front end
where input file location like C:\mydocument\desktop\test.txt
and give input in Name field: mydocument
in delimiter section > select Tabular
File structure section> tick on Field order matches source structure definition
File type: Record end marker(Text file)
then press enter key and other steps as same.
Second thing you said that you have used Batch input recording
after creation and recording finish , scroll the page below on recording and put a cursor unwanted field and remove unwanted input field.
I hope your problem will resolve. you can find the steps pdf on Google search try now.
Thanks
Sanjeet Kumar -
How to set dynamic file path in LSMW
I am working on LSMW object to upload say excel file from my desktop.. if someone runs my lsmw application on their system obviously it fails.. is there way where I can dynamically set the path..I mean whomsoever runs the application it picks the file from their location and execute the program.
hi,,,
change your code accordingly
here i am inserting data into ztable from excel .
*& Report ZBI_UPLOAD_DATA_MAST *
REPORT zbi_upload_data_mast .
DATA : it_tab TYPE filetable,
gd_subrc TYPE i.
TYPES : BEGIN OF wa_wrkctr,
fictr TYPE zbi_fictr_mast-fictr,
prctr TYPE zbi_fictr_mast-prctr,
type TYPE zbi_fictr_mast-type,
END OF wa_wrkctr.
DATA : wa_save TYPE zbi_fictr_mast.
DATA : gd_scol TYPE i VALUE '1',
gd_srow TYPE i VALUE '1',
gd_ecol TYPE i VALUE '256',
gd_erow TYPE i VALUE '65536'.
DATA : it_datatab TYPE STANDARD TABLE OF wa_wrkctr WITH HEADER LINE INITIAL SIZE 0.
it_phy_data TYPE STANDARD TABLE OF wa_energy WITH HEADER LINE INITIAL SIZE 0.
*data : w_current_inv_no(5) TYPE n,
w_pop_up_text LIKE wfcsr_ui_popup_text.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_file LIKE rlgrap-filename OBLIGATORY
DEFAULT 'C:\Physical Stock.xls' .
SELECTION-SCREEN END OF BLOCK b1.
AT SELECTION-SCREEN
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = 'Select File Name'
default_extension = '*.xls'
default_filename = '*.xls'
file_filter = '*.xls'
initial_directory = 'c:\'
MULTISELECTION =
WITH_ENCODING =
CHANGING
file_table = it_tab
rc = gd_subrc.
USER_ACTION =
FILE_ENCODING =
EXCEPTIONS
FILE_OPEN_DIALOG_FAILED = 1
CNTL_ERROR = 2
ERROR_NO_GUI = 3
NOT_SUPPORTED_BY_GUI = 4
others = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
READ TABLE it_tab INTO p_file INDEX 1.
ENDIF.
START-OF-SELECTION.
START-OF-SELECTION.
PERFORM upload_excel_file TABLES it_datatab
USING p_file
gd_scol
gd_srow
gd_ecol
gd_erow.
PERFORM eventtab_build CHANGING lt_eventtab.
PERFORM display_data.
*& Form UPLOAD_EXCEL_FILE
text
-->P_IT_DATATAB text
-->P_P_FILE text
-->P_GD_SCOL text
-->P_GD_SROW text
-->P_GD_ECOL text
-->P_GD_EROW text
FORM upload_excel_file TABLES p_it_datatab
USING p_file
p_scol
p_srow
p_ecol
p_erow.
DATA : lt_intern TYPE kcde_cells OCCURS 0 WITH HEADER LINE.
Has the following format:
Row number | Colum Number | Value
i.e. 1 1 Name1
2 1 Joe
DATA : ld_index TYPE i.
FIELD-SYMBOLS : <fs>.
Note: Alternative function module - 'ALSM_EXCEL_TO_INTERNAL_TABLE'
CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
EXPORTING
filename = p_file
i_begin_col = p_scol
i_begin_row = p_srow
i_end_col = p_ecol
i_end_row = p_erow
TABLES
intern = lt_intern
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
FORMAT COLOR COL_BACKGROUND INTENSIFIED.
WRITE:/ 'Error Uploading file'.
EXIT.
ENDIF.
IF lt_intern[] IS INITIAL.
FORMAT COLOR COL_BACKGROUND INTENSIFIED.
WRITE:/ 'No Data Uploaded'.
EXIT.
ELSE.
SORT lt_intern BY row col.
LOOP AT lt_intern.
MOVE lt_intern-col TO ld_index.
ASSIGN COMPONENT ld_index OF STRUCTURE it_datatab TO <fs>.
MOVE lt_intern-value TO <fs>.
AT END OF row.
APPEND it_datatab.
CLEAR it_datatab.
ENDAT.
ENDLOOP.
ENDIF.
IF it_datatab[] IS NOT INITIAL.
DELETE FROM zbi_fictr_mast.
COMMIT WORK.
LOOP AT it_datatab.
wa_save-fictr = it_datatab-fictr.
wa_save-prctr = it_datatab-prctr.
wa_save-type = it_datatab-type.
INSERT INTO zbi_fictr_mast VALUES wa_save.
IF sy-subrc = 0.
COMMIT WORK.
MESSAGE 'Data upload complete' TYPE 'S'.
ENDIF.
CLEAR wa_save.
CLEAR it_datatab.
ENDLOOP.
ENDIF.
ENDFORM. " UPLOAD_EXCEL_FILE
i hope this will help .
Regards
Deepak -
hi friends,
i have been uploading using the direct input method in lsmw.it is requiring the logical path and the logical file to be given.i tried to create them using the transaction FILE.but while using that in LSMW it is giving error stating that logical path doesn't point to the physical directory.can any how let me know how to create a logical file and logical path.
thanks in advance.
-senthilkumarhi ,
goto the tcode file then u find the relation between the logical and physical paths ...and their assignment..
hope it will helps u..
regards,
venkat. -
Runtime error in LSMW to create Material Master
Hi all,
I am trying to create Material No. using direct input method in lsmw. The program name is RMDATIND. But while executing the last step i.e Start Direct input program I am getting a runtime error
"A RAISE statement in the program "SAPLMG25" raised the exception
condition "NOT_FOUND".
Since the exception was not intercepted by a superior
program, processing was terminated."
I have checked all the steps of lsmw. Any idea why this specific error is coming?Are you able to create the material manually with the data. If you have checked the basic data view then i would check to see if base unit of measure is mandatory and if its being passed/mapped properly for the material you are creating.
-
Error while uploading the file from Allpcation server in LSMW-7th step
Hi Experts,
what should be the specific CODE PAGE should be maintained while uploading the file from application server in LSMW-7th Step
Thanks in advance,
KSRHi
I mean that there is any seperate CODE PAGE which comes at the bottom of screen while uploading the file from the application server in 7th step.
Is there any specific CODE PAGE to be maintained...
Thanks in advance
Oarsk -
CAN we upload data periodically in LSMW?
HI Expert,
In LSMW , maintain object attributes step , there is periodic option if we select that option then would the data transfer periodically?How does it differ from periodic in BDC?
LSMW we can not schedule updation write?
we have extracting data from legacy system into flat file
now we want to map legacy format data into inputfile ( sap format data). how could we do that?
Further i have to use BAPI to uploadTo a limited extent, the LSM Workbench also supports periodic data transfer. Preconditions are:
u2022 The LSMW object has been created and tested completely.
u2022 The "source application" periodically makes available one or several files on the SAP application server.
u2022 The LSMW object does not access files on the frontend. (Files on the frontend cannot be read in batch mode.)
If all these conditions are met, you can set select button "Periodic" in step "Maintain object attributes". Then, step "Control program for periodic data transfer" is displayed in the overview of work steps. This program carries out the following steps in sequence:
Read data
Convert data
Import data
This program (name: /SAPDMC/SAP_LSMW_INTERFACE) can be used according to your requirements.
Maybe you are looking for
-
The first tab will not close, and often does not load all of a page.
When I open firefox, the first tab always has 'search bookmarks and history' in the address bar, instead of the url of my homepage, and it will not close.
-
Cannot compile JNILib after upgrading to Mavericks
Hello there, I just upgraded to Mavericks to find out that now I'm not able to compile the JNILib for my program. This is the output: In file included from ExampleJNILib.c:1: ./ExampleJNILib.h:2:10: fatal error: 'jni.h' file not found #include <jni.h
-
IPhoto shows one full screen photo at a time.
in iphoto I can no longer see thumbnail pictures. I can only see full screen pictures one at a time. Please tell me what I need to change to get thumbnails back. Under iphoto/view thumbnails is grayed out.
-
UnsatisfiedLinkError: ocijdbc10.dll: %1 is not a valid Win32 application
we are running 64-bit Oracle client and getting the following exception in JDBC application when trying to use OCI JDBC URL: Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\oracle\product\10.2.0\db_1\BIN\ocijdbc10.dll: %1 is not a valid
-
Display Window Control IDs and other information
I am attempting to get control of certain controls on a 3rd party software window from my labWindows CVI application and I was wondering if there is a way to get a list of the controls on a specified window along with the control's ID using the WinAP