FS00 Program for upload theG/L accounts
Hi Experts,
I need a sample program for FS00 G/L accounts upload BDC or LSMW program
Thanks in Advance
purnaneelu
Hi,
In LSMW.
Create a source structure with your source fields.
Map the source structure to the target structure.
In the field mapping step map the particular source fields to the target fields.
Specify the source files.
Read the source files and then do the convert step to convert the data.
Then create the session and process it via SM35.
Regards,
Ankur Parab
Similar Messages
-
Standard program for uploading of IDOCs - CREMAS
Dear SAP gurus,
I would like to ask you if there exists some standard program for uploading IDOCs messages - type CREMAS (Vendor master data).
Thank you in advance.
AlenaHas not been solved.
-
Pre-requisites and steps for uploading chart of accounts in sap r/3
Hi,
I am a fresher in SAP FI. I have a completly new set of Chart of Accounts which i need to upload in the system. How do i do it and are there any pre-requisites for the same i.e variants to be defined and assigned completly before uploading the Chart of Accounts.
I have heard of LSMW , but then how do i use it can anybody help me on the same.
Thanks
PoornimaHi,
Yes, you need to define first the chart of account name and it should be assigned to the company code in OBY6.
Please refer below thread:-
[Upload Chart Of Accounts - Indian Localisation;
Regards,
Gaurav -
Program for uploading file on application server...
Hi,
I have created a program to upload a file from presentation server (local desktop) to application server. But in this program I have to specify the file length. What should I do in given program so that I can upload file of any length on application server ?
*& Report Z_FILE_DOWNLOAD_TO_APP_SERVER *
* This Program can be used to move flat files to application server from presentation server.
REPORT Z_FILE_DOWNLOAD_TO_APP_SERVER.
PARAMETERS: P_FILE LIKE IBIPPARMS-PATH,
P_FILE1(20000) default 'E:CONVERSIONFLAT' lower case.
DATA: WS_FILE TYPE STRING.
DATA: BEGIN OF T_DATA OCCURS 0,
RECORD(20000),
END OF T_DATA.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
IMPORTING
FILE_NAME = P_FILE
START-OF-SELECTION.
WS_FILE = P_FILE.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = WS_FILE
FILETYPE = 'ASC'
TABLES
DATA_TAB = T_DATA
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Creating the file at Appl server............................
OPEN DATASET P_FILE1 FOR OUTPUT IN TEXT MODE encoding utf-8.
if sy-subrc ne 0.
message e000(--) with 'Error in opening file'.
endif.
* Trasfer the records to file.............
loop at t_data.
transfer t_data to p_file1.
endloop.
close dataset p_file1.
if sy-subrc eq 0.
write: / 'Written the files at ', p_file1.
write:/ 'Goto AL11 Transaction and then click on SAP Directory DIR_SAPUSERS to look for the file'.
endif.
Please advice.
Regards,
RajeshTry declaring it as TYPE STRING. Not sure though.
There are two predefined types in ABAP with variable length:
STRING for character strings
XSTRING for byte strings
Thanks,
SKJ -
Standard program for uploading budget values in expenses
Hi Experts,
can u please tell me the standard program to upload budget values in Expenses
thanks & regards..
NarendraHi,
This is a sample program to upload through excel sheet.
Check this code to upload vendor master through SHDB transaction.
report ZVEND_MST no standard page heading line-size
255.
*include bdcrecx1.
*parameters: dataset(132) lower case default
'c:\vend.mst'.
DO NOT CHANGE - the generated data section - DO
NOT CHANGE ***
If it is nessesary to change the data section use
the rules:
1.) Each definition of a field exists of two lines
2.) The first line shows exactly the comment
'* data element: ' followed with the data
element
which describes the field.
If you don't have a data element use the
comment without a data element name
3.) The second line shows the fieldname of the
structure, the fieldname must consist of
a fieldname and optional the character '_' and
three numbers and the field length in brackets
4.) Each field must be type C.
Generated data section with specific formatting -
DO NOT CHANGE ***
data: begin of record,
data element: LIF16
LIFNR_001(016),
data element: BUKRS
BUKRS_002(004),
data element: EKORG
EKORG_003(004),
data element: KTOKK
KTOKK_004(004),
data element: NAME1_GP
NAME1_005(035),
data element: SORTL
SORTL_006(010),
data element: LAND1_GP
LAND1_007(003),
data element: SPRAS
SPRAS_008(002),
data element: BSTWA
WAERS_009(005),
end of record.
End generated data section ***
DATA : ITAB TABLE OF RECORD WITH HEADER LINE.
start-of-selection.
*perform open_dataset using dataset.
*perform open_group.
*do.
*read dataset dataset into record.
*if sy-subrc <> 0. exit. endif.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\VENDOR.TXT'
"TEXT FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = ITAB
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT ITAB.
*In Loop Change Record With ITAB
like record-lifnr_001 with itab-lifnr_001
perform bdc_dynpro using 'SAPMF02K' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-KTOKK'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02K-LIFNR'
record-LIFNR_001.
perform bdc_field using 'RF02K-BUKRS'
record-BUKRS_002.
perform bdc_field using 'RF02K-EKORG'
record-EKORG_003.
perform bdc_field using 'RF02K-KTOKK'
record-KTOKK_004.
perform bdc_dynpro using 'SAPMF02K' '0110'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-SPRAS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFA1-NAME1'
record-NAME1_005.
perform bdc_field using 'LFA1-SORTL'
record-SORTL_006.
perform bdc_field using 'LFA1-LAND1'
record-LAND1_007.
perform bdc_field using 'LFA1-SPRAS'
record-SPRAS_008.
perform bdc_dynpro using 'SAPMF02K' '0120'.
perform bdc_field using 'BDC_CURSOR'
'LFA1-KUNNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0130'.
perform bdc_field using 'BDC_CURSOR'
'LFBK-BANKS(01)'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPMF02K' '0210'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-AKONT'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0215'.
perform bdc_field using 'BDC_CURSOR'
'LFB1-ZTERM'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0220'.
perform bdc_field using 'BDC_CURSOR'
'LFB5-MAHNA'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_dynpro using 'SAPMF02K' '0310'.
perform bdc_field using 'BDC_CURSOR'
'LFM1-WAERS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'LFM1-WAERS'
record-WAERS_009.
perform bdc_dynpro using 'SAPMF02K' '0320'.
perform bdc_field using 'BDC_CURSOR'
'RF02K-LIFNR'.
perform bdc_field using 'BDC_OKCODE'
'=ENTR'.
perform bdc_dynpro using 'SAPLSPO1' '0300'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
perform bdc_transaction using 'XK01'.
endLOOP..
Check It, Activate it and process in SM35. -
BAPI_INSPECTIONPLAN_CREATE -Program for uploading data
Hi,
we are having some difficulties in loaing data through LSMW -Direct input method.
I want to use BAPI_INSPECTIONPLAN_CREATE for uploading my data.
I am new to this type of loads.Any ideas?
regard
PraveenHello,
i see YSCI_MAEX_UPLOAD_R3 dveloped report by you. (starting with Y*)
When you directly updates tables you wont get any log, as soon as you report wont generate them.
Usually report should (after executed) generate spool when "WRITE" command is present.
Check when executed in background whether it does generate spool.
TA: SM37 in the "job log" check for spool.
@Anyway, standard log can be seen in GTS in TA: SLG1 (but this is not the case).
Best regards,
Gabriel.
@Spool can be easily downloaded to PC. -
BDC Program for Uploading Data for Property Tree in cg02
Hi,
How to upload data for property tree ( standard Properties ) of CG02. I checked for BAPI or Function Module but most them supports for specification header and sub item.
Please Let me know if any function module or BAPI available for this process. I tried with BDC Program, but it fails.
Regards,
Rajesh Kumar MurugesanHallo Rajesh
take a look here:
http://help.sap.com/erp2005_ehp_06/helpdata/en/c1/eda0f591ec12408b25e7a1b369ca45/frameset.htm
Chapter "Import and Export".
1.) Reads cross these further chapters:
"Tools (EHS-BD-TLS)" => "IMport and Export" => "Import: Process" => "Specifying the Sequence of the External Data Structure " => "External File Structure: Specification"
Here you will learn how to prepare the data. In chapter:" Example: Transfer File for Specifications" you will find an example of an file whcih could be used to upload data in the property tree
2.) Chapter:" Importing Specifications" is explaining the steps whcih are need to populate the property with data using the file as prepared; read cross chapter "Specification Import Control"
I hope this helps.
C.B.
Edited by: Christoph Bergemann on Feb 4, 2012 6:59 PM
Edited by: Christoph Bergemann on Feb 4, 2012 6:59 PM -
Program for uploading Statistical Key Figure KK01 Stattistical Values KB31
Hi ,
I need a Program through which we can upload statistical kay figure and statistical key figure values data
any one who worked on this specific requirement please send the coding
Moderator message: this is not your code factory, please do some own research first.
Edited by: Thomas Zloch on Mar 2, 2012Read [BAPI_ACC_STAT_KEY_FIG_POST|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_acc_stat_key_fig_post] documentation. For a list of such BAPI look at [BAPIs for manual actual posting in Controlling|http://help.sap.com/saphelp_46b/helpdata/pt/34/60afcfae724effe10000009b38f91f/frameset.htm] (or more recent ones) as well as transaction BAPI. Another solution is the [sdn search tool|http://www.sdn.sap.com/irj/scn/advancedsearch?query=kb31+bapi].
[Get back if you have more precise queries|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement].
Regards,
Raymond -
Bdc program for uploading region data in sales analysis
hi expert,
i want to upload the region data in sales transaction show that i want to analysis the area wise sales detail for different material.for this which *transaction code* ,i should use for recording.can any body provide me example for BDC Program.
Thank youhi expert,
i want to upload the region data in sales transaction show that i want to analysis the area wise sales detail for different material.for this which *transaction code* ,i should use for recording.can any body provide me example for BDC Program.
Thank you -
Program for uploading the PO data of known vendor in MM using the flat file
hi friends,
I got problem while uploading PO data for a vendor.what are the possible ways of uploading data.
Moderator message: please do your own research before asking.
Edited by: Thomas Zloch on Jan 11, 2011 11:37 AMhi friends,
I got problem while uploading PO data for a vendor.what are the possible ways of uploading data.
Moderator message: please do your own research before asking.
Edited by: Thomas Zloch on Jan 11, 2011 11:37 AM -
Migration Program for new General Account
Hi Gurus
Is there any standard migration program for new G/L Accounts.
or please tell the process of how we migrate data to New G/L accounts.
Thanks
ArunHi,
There is indeed a migration program to transfer the G/L accounts data to SAP. You can use LSMW tool to migrate the data.
Program Name: RFBIBL00
Program Type : D (Direct Input)
Object : 0100
Method: 0000
Regards,
Asif Ali Khan -
API for uploading flexfield value
We have a fresh installation of Oracle EBS and start to do the setup.
I would like to know if Oracle has API for uploading flexfield values since we have hundred thousand values that we need to setup in a flexfield. Instead we use 3rd party sofware e.g : Dataloader we're considering if we make a custom program for uploading them.
I appreciate your help.@Srini Chavali
this flexfield is for Accounting Flexfield.
@Pillair
is this FND_FLEX_VALUES_PKG.LOAD_ROW can be used for Accounting Flexfield also ?
Thanks -
Program for transferring amount from one GL to another based on due date.
Hi
There is one requirement to show customers in differnt way (i.e. dues less than 6months seperately and more than 6 months seperately).
I have created one GL (customers due less than 6 months)
Now all balances are in one GL account i.e. customer due more than 6 monhts)
So is there any program which will transfer all the amount for due less than six months from one GL to other GL.
I also need such program for items (like prepaid accounts) which are entered directly into GL accounts.
Edited by: Meenu_ND on Dec 23, 2010 5:01 PMHi,
Yes there is one functionality available that is Reclassification or sorting of Receivables and payables. The tcode is FAGLF101 - Sorting/Reclassification (New), for this you need to do some configuration settings. The navigation path is New gl- periodic processing-Reclassify-Transfer and sort receivables & payables.
Regards,
Azeem -
How to create a BDC program for given recording.
i have to create a BDC program for uploading a file.
currently i am using call function
CALL FUNCTION 'F4_FILENAME'just check out the code below it is for updating two transactions
types Declaration *
types: begin of t_tab1 ,
vendor(10),
material(18),
pur_org(4),
wglif(18),
end of t_tab1.
Data Declaration *
data : begin of it_tab5 occurs 0,
vendor(10),
material(18),
end of it_tab5.
**DATA : BEGIN OF IT_TAB6 OCCURS 0,
VENDOR(10),
MATERIAL(18),
END OF IT_TAB6.
data: it_tab1 type standard table of t_tab1 with header line.
data: wa_tab1 type t_tab1.
data: wa_tab2 type t_tab1.
data: it_tab3 like bdcdata occurs 0 with header line.
data: it_tab4 like bdcdata occurs 0 with header line.
data: it_tab2 type table of bdcmsgcoll with header line.
data: d_file_name like ibipparms-path,
d_file_name1 type string.
Start-of-selection *
start-of-selection.
FM for finding the flat file
call function 'F4_FILENAME'
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
importing
file_name = d_file_name.
d_file_name1 = d_file_name.
******FM for uploading data from flat file into internal table
call function 'GUI_UPLOAD'
exporting
filename = d_file_name1
filetype = 'ASC'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab = it_tab5
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
others = 17.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
End-of-selection *
end-of-selection.
sort it_tab5 by vendor.
loop at it_tab5.
perform bdc_dynpro using 'SAPLBG00' 0101 .
perform bdc_field using 'BDC_OKCODE' '/00' .
perform bdc_dynpro using 'SAPLBG00' 1000 .
perform bdc_field using 'BDC_OKCODE' '=BUCH' .
perform bdc_field using 'BDC_SUBSCR'
'SAPLBG00 1101KOPF_1000'.
perform bdc_field using 'GBGMK-GAART' '2' .
perform bdc_field using 'GBGMK-GAERB' 'X' .
perform bdc_field using 'BDC_SUBSCR'
'SAPLBG00 1103TAB_SUB_1000'.
perform bdc_field using 'BDC_CURSOR' 'GBGMP-LSTNR(01)' .
perform bdc_field using 'GBGMP-LSTNR(01)' it_tab5-material .
call transaction 'BGM1' using it_tab3 mode 'E' messages into it_tab2
refresh it_tab3.
wa_tab1-pur_org = 'ABCP'.
loop at it_tab2.
endloop.
perform bdc_dynpro using 'SAPMM06I' 0100 .
perform bdc_field using 'BDC_CURSOR' 'EINE-EKORG' .
perform bdc_field using 'BDC_OKCODE' '/00' .
perform bdc_field using 'EINA-LIFNR' it_tab5-vendor .
perform bdc_field using 'EINA-MATNR' it_tab5-material .
perform bdc_field using 'EINE-EKORG' wa_tab1-pur_org .
perform bdc_field using 'RM06I-NORMB' 'X' .
perform bdc_dynpro using 'SAPMM06I' 0101 .
perform bdc_field using 'BDC_CURSOR' 'EINA-WGLIF' .
perform bdc_field using 'BDC_OKCODE' '=BU' .
perform bdc_field using 'EINA-WGLIF' it_tab2-msgv1 .
call transaction 'ME12' using it_tab3 mode 'E'.
refresh it_tab3.
refresh it_tab2.
endloop.
*& Form BDC_DYNPRO
Start new screen
-->P_FNAM text
-->P_FVAL text
form bdc_dynpro using program
dynpro.
clear it_tab3.
it_tab3-program = program.
it_tab3-dynpro = dynpro.
it_tab3-dynbegin = 'X'.
append it_tab3.
endform. " BDC_DYNPRO
*& Form BDC_FIELD
Insert field
-->P_FNAM text
-->P_FVAL text
form bdc_field using fnam
fval.
clear it_tab3.
it_tab3-fnam = fnam.
it_tab3-fval = fval.
append it_tab3.
endform. " BDC_FIELD
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:20 PM -
Maximum size of the image for uploading.
Dear All,
I wrote an image upload program for uploading Color images. I need to know the maximum size of the image to be uploaded.
I am using the class cl_gui_frontend_services=>gui_upload for uploading the image.
Regards,
Rahul Ryou will be converting the image into 'TIFF' or 'BMP' to be uploaded through GUI_UPLOAD.
i think you can do it for large size also, and for any problem you will get the exceptions :
DP_OUT_OF_MEMORY : Not Enough Memory in Data Provider
DISK_FULL : Storage Medium full.
so try and see.
Maybe you are looking for
-
Auto reclass of Freight from GR/IR document
Hi Guru, For GR/IR account, we know, we can have a reclassification process at month end and reverse out at the first day of next month. How can we achieve for some other accounts, eg. Freight clearing account, when GR, it have credit entry, when IR
-
I accidentally deleted the Quick Time from my computer. What should I do now??? Can I reistall i-Tunes without loosing my downloaded music? Thx
-
Afternoon, I'm drawing a line marker onto a chart to show upper and lower boundaries. Occasionally my lower boundary is zero, which happens to be where the X-axis is graphed. When this happens I'm unable to see the line marker anymore (the x-axis see
-
Jumpstart: ask for Sparc 2/2
Hi all I've upgraded the image of our Jumpstart server to Solaris 9 12_03. A new jumpstart installation no stops after approx. 600MB , reboots and asks interactively after the second Solaris CD. Whats wrong ? I checked the /tmp/install_log, but found
-
Is Parallels Desktop 9 compatible with OS X Yosemite
Hi, I want to know if I can use Parallels Desktop 9 with OS X Yosemite, or if I need to use Parallels Desktop 10... Thank you!