Down load PO Header text
Hi,
My client is switching from SAP to Oracle. (It was taken over by a company which is using Oracle ERP)
We are keeping all the MM and FI tables in a Data Portal.
We need to take the data of PO Header Texts also.
How to down load the PO header text in to Excel.
Thanks
Prasad
you have to write a small ABAP that calls function module READ_TEXT to get the text in a readable way.
Read_Text Function module is used to retrieve the text for a any long text in SAP.
To find the the parameters needed .
1. goto ME23N, enter PO Number
2. Goto-->PO header Text tab
3. click on the TEXT (which you want to know the Text id) , then click the EDITOR Icon
4. when you are in the editor, then choose from menu GOTO > HEADER . in the Next window you will find Text Name. Text ID, Language. etc...
you can find many examples for such coding in the web using google search
Similar Messages
-
URGENT HELP *** Need to load BOM Header TEXT
Hello Experts,
How can i load BOM Header text using LSMW
Thanks
STwo ways to upload:
1. Via FM: SAVE_TEXT
2. Create a recording to add text for BOM Header and Use accordingly.
Regards
Eswar -
Down load or create text file using bapi
hi friends,
My requirement is to create text file or down load text file in presentation server when the bapi runs in which the ip address is defined at the interface.
plz sujjest me,
points will be rewarded .
prasad.Hi,
The FM 'GUI_DOWNLOAD' should use the network path like '
10.10.10.10\shared_file\PO.txt'. Pass this value to the file path parameter and execute the program.
Thanks..
Preetham S -
Problem in down loading Grid out to Excel
Hi all ,
when i down load grid output into excel using list->export->localfile ->spread sheet,
Some columns headings are down loaded with medium texts and some with short texts (seltext_s) .The same is displayed in default output(with out dragging) . I found that fields with short texts are because of field data length is less than 10 char .customer is asking to medium or long texts in excel when down loaded..
1)Hence i expanded fileds and then down loaded , same short texts are down loaded to XL.
2)I incresed output length for those fields so as to take medium or long texts in default output of report(no need of dragging ) and then down loaded to excel .Still it is taking short texts only in XL .
Will there be any default settings to consider text to considered while down loading or do ineed to set explicitley .Please advise me ..
a bit urgent .
I constructed fieldcat as follows
ls_fieldcat-fieldname = c_cname.
ls_fieldcat-seltext_l = text-004.
ls_fieldcat-seltext_s = text-004.
ls_fieldcat-seltext_m = text-004.
ls_fieldcat-reptext_ddic = text-004.
MODIFY p_fieldcat FROM ls_fieldcat TRANSPORTING seltext_l seltext_m
seltext_s reptext_ddic WHERE fieldname = ls_fieldcat-fieldname.
Many Thanks
Dharma PHi A. Caglar Ozkor,
Basically the parmeter layout-colwidth optimization is set to 'X'. I tried out to increase outputlength after setting it to ' ' , then down loaded to excel .In that case also it picked only short texts , Hence I thought there would be some settings to decide what text to be picked while down loading in to excel .
Guys , Any ideas to solve this problem ...
Dharma P -
Why am I suddenly unable to see pdf (on iMac) when I click on them ?There is is just a mid grey blank screen .I have sent pdf to my Blackb and I can read it there ,so the file is OK .I recently tried to down load a recent version of Adobe reader from a government site -could this be the cause?If so ,how do I uninstall it ?
Back up all data.
Triple-click the line of text below to select it, the copy the selected text to the Clipboard (command-C):
/Library/Internet Plug-ins
In the Finder, select
Go ▹ Go to Folder
from the menu bar, or press the key combination shift-command-G. Paste (command-V) into the text box that opens, then press return.
From the folder that opens, remove any items that have the letters “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
I've seen an unconfirmed report that the "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you might need to remove it as well, if applicable.
If you still have the issue, repeat with this line:
~/Library/Internet Plug-ins
If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again. -
TS1702 Just bought Dramatic black and white HD , The down load is just a text code.
I just paid for a ap Dramatic Black and white, HD
it sayd down loaded, and I fount the thing with cnet down loader, Fist how do you get rid of that, Secon,
The program did not open all i get was a text file.
How to down load the program properly to my mac book, Lion.
If this is not working, Do i get a credit?Apps that are downloaded from iTunes are only compatible with iOS devices, iPhones, iPod Touches and/or iPads - that particular app can only be used on iPads (an app's requirements are listed below its description on its page in the store). If you want to use programs on your Mac then you either need to buy them online or from the Mac App Store.
As you don't have an iPad then try the 'report a problem' page to contact iTunes Support and see if they will refund or credit you : http://reportaproblem.apple.com
If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption -
Problem while down loading data into Excel
Hi friend's,
I am getting a error while down loading header
internal table to excel.
since in my header internal table there is no p
type field..but i am getting this error..
Only flat, character-type data objects are supported at the argument
position "dest" for the statement
"WRITE src TO dest".
In this case, the operand "dest" has the non-character-type or deep type
"P". The current program is flagged as a Unicode program. In the Unicode
context, type X fields are seen as non-character-type, as are
structures that contain non-character-type components.
i have coded like this
REPORT ZACG_CCA_EXCEL .
Tables : zacg_cca.
data: P_file like RLGRAP-FILENAME.
Data: Begin of it_header occurs 0,
ccode(10) ,
mat_cd(12) ,
ingr_desc(30),
con(10),
quan(10),
percqty(10),
DATE(10),
rsamnos(10),
flag(5),
end of it_header.
Data : begin of it_final occurs 0,
ccode type zacg_cca-ccode,
mat_cd type zacg_cca-mat_cd,
ingr_desc type zacg_cca-ingr_desc,
conc type zacg_cca-conc,
quantity type zacg_cca-quantity,
percqty type zacg_cca-percqty,
APP_DATE type zacg_cca-app_date,
rsamnos type zacg_cca-rsamnos,
flag ,
end of it_final.
SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-000.
select-options : s_Date for zacg_cca-app_date.
SELECTION-SCREEN : END OF BLOCK blk.
it_header-ccode = 'Samp_code'.
it_header-mat_cd = 'Mat_code'.
it_header-ingr_desc = 'Ingr_Desc'.
it_header-con = 'Conc'.
it_header-quan = 'Quantity'.
it_header-percqty = 'Perc'.
it_header-date = 'Date'.
it_header-rsamnos = 'Rsamnos'.
it_header-flag = 'Flag'.
Append it_header.
select ccode mat_cd ingr_desc conc quantity percqty
app_date rsamnos from zacg_cca into corresponding
fields of table
it_final where zacg_cca~app_date in s_date.
loop at it_final.
it_final-flag = 'T'.
modify it_final.
it_final-quantity = it_final-quantity * 2 .
Modify it_final.
endloop.
CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
EXPORTING
FILE_NAME = 'C:\amol\p_file'
CREATE_PIVOT = 0
DATA_SHEET_NAME = ' '
PIVOT_SHEET_NAME = ' '
PASSWORD = ' '
PASSWORD_OPTION = 0
TABLES
PIVOT_FIELD_TAB =
DATA_TAB = it_final
FIELDNAMES = it_header
EXCEPTIONS
FILE_NOT_EXIST = 1
FILENAME_EXPECTED = 2
COMMUNICATION_ERROR = 3
OLE_OBJECT_METHOD_ERROR = 4
OLE_OBJECT_PROPERTY_ERROR = 5
INVALID_PIVOT_FIELDS = 6
DOWNLOAD_PROBLEM = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
can any one....hii
for title this FM have some restriction as it can not take value if its more then 10 length so you need to give length as 10 only for every string then append it with FIELDNAMES = it_header
regards
twinkal -
Truncation of leading Zeros when Down Loading into Excel - OLE Objects
Hi,
Can any one help me on this.
I am using <b>OLE Objects</b> to download Data into Excel Sheet. Data with leading Zeros is getting truncated in Excel.
Ex: Report Output is showing Plant Number as 0002. But when i am downloading to Excel Plant value will become 2 .
I would like to have it as 0002 in Excel.
I have declared Werks as CHAR of 4.I am using OLE Obects for Downloading into Excel Sheet.
I am using "OLE2_OBJECT" I can not use any other FMs to down load to Excel.As i am modifying this program not creating.
Thanks In Advance.
K.Nirmala
Message was edited by: Nirmala ReddyHi Nirmala,
While downloading to excel sheet, u need to change the number format of cell from General to Text, then leading zero's won't get deleted. For that u need to set the property of the cell. Please check this sample code,
INCLUDE OLE2INCL.
tables : zobrent.
data : it_kna1 type table of zobrent with header line.
handles for OLE objects
DATA: H_EXCEL TYPE OLE2_OBJECT, " Excel object
H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT. " font
DATA H TYPE I.
DATA: cell1 TYPE ole2_object.
*& Event START-OF-SELECTION
START-OF-SELECTION.
select * from zobrent into table it_kna1
where zopanid = '10001'
and zo_brent = '050'.
start Excel
CREATE OBJECT H_EXCEL 'EXCEL.APPLICATION'.
PERFORM ERR_HDL.
SET PROPERTY OF H_EXCEL 'Visible' = 1.
get list of workbooks, initially empty
CALL METHOD OF H_EXCEL 'Workbooks' = H_MAPL.
PERFORM ERR_HDL.
add a new workbook
CALL METHOD OF H_MAPL 'Add' = H_MAP.
PERFORM ERR_HDL.
output column headings to active Excel sheet
PERFORM FILL_CELL USING 1 1 1 'EDate'.
PERFORM FILL_CELL USING 1 2 1 'Brent'.
PERFORM FILL_CELL USING 1 3 1 'Zopanid'.
PERFORM FILL_CELL USING 1 4 1 'Contract Type'.
PERFORM FILL_CELL USING 1 5 1 'Price Type'.
PERFORM FILL_CELL USING 1 6 1 'Installation Type'.
PERFORM FILL_CELL USING 1 7 1 'Volume'.
PERFORM FILL_CELL USING 1 8 1 'AQ'.
PERFORM FILL_CELL USING 1 9 1 '00000123'.
LOOP AT IT_KNA1.
copy values to active EXCEL sheet
H = SY-TABIX + 1.
PERFORM FILL_CELL USING H 1 0 IT_KNA1-zo_effdat.
PERFORM FILL_CELL USING H 2 0 IT_KNA1-zo_brent.
PERFORM FILL_CELL USING H 3 0 IT_KNA1-zopanid.
ENDLOOP.
CALL METHOD OF h_excel 'Cells' = cell1
EXPORTING
#1 = 1
#2 = 1.
FREE OBJECT H_EXCEL.
PERFORM ERR_HDL.
if sy-subrc eq 0.
write : / 'year'(001).
endif.
FORM FILL_CELL
sets cell at coordinates i,j to value val boldtype bold
FORM FILL_CELL USING I J BOLD VAL.
CALL METHOD OF H_EXCEL 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
PERFORM ERR_HDL.
GET PROPERTY OF H_ZL 'Font' = H_F.
PERFORM ERR_HDL.
SET PROPERTY OF H_F 'Bold' = BOLD .
PERFORM ERR_HDL.
***Changing the format of the cell from General to Text
<b>SET PROPERTY OF H_ZL 'NumberFormat' = '@'.</b>
PERFORM ERR_HDL.
SET PROPERTY OF H_ZL 'Value' = VAL .
PERFORM ERR_HDL.
ENDFORM.
*& Form ERR_HDL
FORM ERR_HDL.
IF SY-SUBRC <> 0.
WRITE: / 'Fehler bei OLE-Automation:'(010), SY-SUBRC.
STOP.
ENDIF.
ENDFORM. " ERR_HDL
U just paste this code in a sample program & see.
Please reward, if found helpful. -
Password Protection to the Excel File that was down loaded
Hi Friends,
I had an requirement regarding the excel file.whenever the excel file is down loaded on the desktop it should be password protected.i..e, no one should be able to open the file unless they have the password.REPORT ZWMI_TRUCK_DOWNLOAD no standard page heading.
======================================================================
Program Name : ZWMI_TRUCK_DOWNLOAD *
Description : This Program is used to get all truck load status *
and download into XLS File and fields are Route #, *
Dispatch time ,Closing time ,Scan Details. *
Author : Seshu *
Date : 02/15/2007 *
MODIFICATION HISTORY *
DATE | AUTHOR | CHANGE # | DESCRIPTION OF MODIFICATION *
--|||--
02/15/07| Seshu | DEVK922058 | Initial *
02/20/07| Seshu | DEVK922068 | Changed the name as per Naming *
Convention *
03/14/07| Seshu | DEVK922126 | Included date as Range *
======================================================================
Tables
tables : zsdcarton,
ztruck,
ztruckstatus.
Constants
constants: c_werks(4) type c value '1000'.
Internal table for Ztruck
data : begin of i_ztruck occurs 0,
werks like ztruck-werks," Plant
vdatu like ztruck-vdatu, " Delivery date
ZZTRKNO like ztruck-ZZTRKNO, " Route #
ZZSHIPTIME like ztruck-ZZSHIPTIME, " Dispatch time
ZCLTIME like ztruck-ZCLTIME, " Truck close time
end of i_ztruck.
Internal table for ZSDCARTON
data : begin of i_zsdcarton occurs 0,
lateflag like zsdcarton-lateflag,
zzslot like zsdcarton-zzslot,
status like zsdcarton-status,
end of i_zsdcarton.
Internal table for Final output
data : begin of i_final occurs 0,
vdatu like ztruck-vdatu, " Delivery Date
ZZTRKNO like ztruck-ZZTRKNO, " Route #
ZZSHIPTIME like ztruck-ZZSHIPTIME, " Dispatch time
ZCLTIME like ztruck-ZCLTIME, " Truck close time
load_compl_c(5) type n , " Load Complted Time
status_s_total(5) type n, " No Scan/Load
status_l_total(5) type n, " Late Scan
end of i_final.
Internal Table XLS File Header
DATA: BEGIN OF i_head OCCURS 0,
field(30) TYPE c,
END OF i_head.
Variables
status couter
data: status_total(5) type n,
no scan / no load
status_s(3) type n,
status_s_total(5) type n,
good
status_g(3) type n,
status_g_total(5) type n,
late
status_l(3) type n,
status_l_total(5) type n,
manual
status_m(3) type n,
status_m_total(5) type n,
alternative
status_a(3) type n,
status_a_total(5) type n.
S E L E C T I O N - S C R E E N *************************
selection-screen : begin of block blk with frame title text-001.
select-options : p_vdatu for zsdcarton-vdatu obligatory
default sy-datum.
selection-screen : end of block blk .
S T A R T - O F - S E L E C T I O N ******************
start-of-selection.
Get the data from ZTRUCK and
perform get_data_tables.
Down load the data into XLS file
perform get_download.
S T A R T - O F - S E L E C T I O N ******************
end-of-selection.
*& Form get_data_tables
FORM get_data_tables.
data : lv_time like sy-uzeit.
select werks
vdatu
zztrkno
zzshiptime
zcltime from ztruck into table i_ztruck
where werks = c_werks
and vdatu in p_vdatu.
if sy-subrc ne 0.
message e000(zwave) with 'No data found for given current date'.
endif.
loop at i_ztruck.
refresh : i_zsdcarton.
clear : i_zsdcarton,
lv_time.
Get the Scan Status for Every route
select lateflag zzslot status from zsdcarton into table i_zsdcarton
where werks = i_ztruck-werks
and vdatu = i_ztruck-vdatu
and zztrkno = i_ztruck-zztrkno.
if sy-subrc eq 0.
loop at i_zsdcarton.
case i_zsdcarton-lateflag.
late cartons
when 'X'.
late and never loaded
if i_zsdcarton-zzslot = space.
add 1 to status_s.
else.
add 1 to status_l.
endif.
all other exceptions
when space.
check if scanned
case i_zsdcarton-zzslot.
good scan
when 'S'.
add 1 to status_g.
never scanned
when space.
if i_zsdcarton-status = space.
no scan
add 1 to status_s.
else.
no load -> no scan
add 1 to status_s.
endif.
manual scanned
when 'M'.
if i_zsdcarton-status = 'M'.
add 1 to status_g.
elseif i_zsdcarton-status = 'E'.
exceprtion -> manual
add 1 to status_g.
endif.
endcase.
endcase.
add totals
add status_g to status_g_total.
Late Scan
add status_l to status_l_total.
add status_a to status_a_total.
No Scan and Load
add status_s to status_s_total.
clear : status_g,
status_l,
status_a,
status_s.
endloop.
else.
continue.
endif.
Get the Load Complete Time
select single uzeit from ztruckstatus into lv_time
where werks = i_ztruck-werks
and lgnum = '100'
and vdatu = i_ztruck-vdatu
and zztrkno = i_ztruck-zztrkno
and tstat = 'L'.
if sy-subrc eq 0.
write: lv_time(5)
to i_final-load_compl_c using edit mask '__:__'.
endif.
Delivery Date
i_final-vdatu = i_ztruck-vdatu.
Route #
i_final-zztrkno = i_ztruck-zztrkno.
Dispach time
i_final-zzshiptime = i_ztruck-zzshiptime.
Truck Close Time
i_final-zcltime = i_ztruck-zcltime.
No Scan/ Load
i_final-status_s_total = status_s_total .
Late Scan
i_final-status_l_total = status_l_total.
append i_final.
clear : status_g_total,
status_l_total,
status_a_total,
status_s_total,
lv_time,
i_final.
endloop.
ENDFORM. " get_data_tables
*& Form get_download
Download the data
FORM get_download.
data : lv_file like rlgrap-filename,
lv_date(8) type c.
lv_date = sy-datum.
concatenate 'C:/Truckload' lv_date into lv_file.
Fill the Header Values
Delivery Date
i_head-field = 'Delivery Date'.
append i_head.
Route #
i_head-field = 'Route'.
APPEND i_head.
Dispatch Time
i_head-field = 'Dispatch Time'.
append i_head.
Closing Time
i_head-field = 'Closing Time'.
append i_head.
Load Completed Time
i_head-field = 'Load Completed Time'.
append i_head.
No Scan/Load
i_head-field = 'No Scan/Load'.
append i_head.
Late Scan
i_head-field = 'Late Scan'.
append i_head.
CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
EXPORTING
FILE_NAME = lv_file
CREATE_PIVOT = 0
DATA_SHEET_NAME = 'TruckLoad'
PIVOT_SHEET_NAME = ' '
PASSWORD = ' '
PASSWORD_OPTION = 0
TABLES
PIVOT_FIELD_TAB =
DATA_TAB = i_final
FIELDNAMES = i_head
EXCEPTIONS
FILE_NOT_EXIST = 1
FILENAME_EXPECTED = 2
COMMUNICATION_ERROR = 3
OLE_OBJECT_METHOD_ERROR = 4
OLE_OBJECT_PROPERTY_ERROR = 5
INVALID_FILENAME = 6
INVALID_PIVOT_FIELDS = 7
DOWNLOAD_PROBLEM = 8
OTHERS = 9
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " get_download
In function module you have option like password protect.. -
I cant get I tunes to down load on to my computer it keeps telling me it cant find the APPLE APPLICACATION SUPORT?????
With the Error 2, let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
http://www.apple.com/itunes/download/
Download and install the free trial version of WinRAR suitable for your PC (there's a 32-bit Windows version and a 64-bit Windows version). If the following link takes you to the WinRAR home page rather than the WinRAR downloads page, click the Downloads header in the box at the left of the WinRAR home page to see the trial version downloads:
http://www.rarlab.com/download.htm
Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
Does it install properly for you? If so, see if iTunes will launch without the error now.
If instead you get an error message during the install, let us know what it says. (Precise text, please.) -
BDC F-03 (page down loading problem)
Sir,
I'm trying BDC for tcode ( clear G/L account.). With following code ..but I'm getting error
on screen number 0731 while page down loading. Please help me ...
REPORT CLEAR_ITEM.
TABLES :BKPF,RF05A.
DATA : BEGIN OF RECORD OCCURS 0,
index(001),
AGKON(16),
BUDAT(10),
MONAT(2),
BUKRS(4),
WAERS(3),
END OF RECORD.
DATA : BEGIN OF RECORD1 OCCURS 0,
index(002),
SEL01 LIKE RF05A-SEL01,
END OF RECORD1.
data dat like sy-datum.
data ibdc like bdcdata occurs 0 with header line.
dat = sy-datum - 1.
CALL FUNCTION 'UPLOAD'
EXPORTING
* CODEPAGE = ' '
FILENAME = 'C:\'
FILETYPE = 'DAT'
* ITEM = ' '
* FILEMASK_MASK = ' '
* FILEMASK_TEXT = ' '
* FILETYPE_NO_CHANGE = ' '
* FILEMASK_ALL = ' '
* FILETYPE_NO_SHOW = ' '
* LINE_EXIT = ' '
* USER_FORM = ' '
* USER_PROG = ' '
* SILENT = 'S'
* IMPORTING
* FILESIZE =
* CANCEL =
* ACT_FILENAME =
* ACT_FILETYPE =
TABLES
DATA_TAB = RECORD.
* EXCEPTIONS
* CONVERSION_ERROR = 1
* INVALID_TABLE_WIDTH = 2
* INVALID_TYPE = 3
* NO_BATCH = 4
* UNKNOWN_ERROR = 5
* GUI_REFUSE_FILETRANSFER = 6
* OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'UPLOAD'
EXPORTING
* CODEPAGE = ' '
FILENAME = 'C:\'
FILETYPE = 'DAT'
* ITEM = ' '
* FILEMASK_MASK = ' '
* FILEMASK_TEXT = ' '
* FILETYPE_NO_CHANGE = ' '
* FILEMASK_ALL = ' '
* FILETYPE_NO_SHOW = ' '
* LINE_EXIT = ' '
* USER_FORM = ' '
* USER_PROG = ' '
* SILENT = 'S'
* IMPORTING
* FILESIZE =
* CANCEL =
* ACT_FILENAME =
* ACT_FILETYPE =
TABLES
DATA_TAB = RECORD1.
* EXCEPTIONS
* CONVERSION_ERROR = 1
* INVALID_TABLE_WIDTH = 2
* INVALID_TYPE = 3
* NO_BATCH = 4
* UNKNOWN_ERROR = 5
* GUI_REFUSE_FILETRANSFER = 6
* OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*start-of-selection.
CALL FUNCTION 'BDC_OPEN_GROUP'
EXPORTING
CLIENT = SY-MANDT
* DEST = FILLER8
GROUP = 'F-03'
HOLDDATE = DAT
KEEP = 'X'
USER = SY-UNAME.
* RECORD = FILLER1
* PROG = SY-CPROG
* IMPORTING
* QID =
* EXCEPTIONS
* CLIENT_INVALID = 1
* DESTINATION_INVALID = 2
* GROUP_INVALID = 3
* GROUP_IS_LOCKED = 4
* HOLDDATE_INVALID = 5
* INTERNAL_ERROR = 6
* QUEUE_ERROR = 7
* RUNNING = 8
* SYSTEM_LOCK_ERROR = 9
* USER_INVALID = 10
* OTHERS = 11
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 record.
perform mapping.
CALL FUNCTION 'BDC_INSERT'
EXPORTING
TCODE = 'F-03'
* POST_LOCAL = NOVBLOCAL
* PRINTING = NOPRINT
* SIMUBATCH = ' '
* CTUPARAMS = ' '
TABLES
DYNPROTAB = IBDC.
* EXCEPTIONS
* INTERNAL_ERROR = 1
* NOT_OPEN = 2
* QUEUE_ERROR = 3
* TCODE_INVALID = 4
* PRINTING_INVALID = 5
* POSTING_INVALID = 6
* OTHERS = 7
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
REFRESH IBDC.
ENDLOOP.
CALL FUNCTION 'BDC_CLOSE_GROUP'
* EXCEPTIONS
* NOT_OPEN = 1
* QUEUE_ERROR = 2
* OTHERS = 3
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
form mapping.
perform bdc_dynpro using 'SAPMF05A' '0131'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-XPOS1(03)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF05A-AGKON'
RECORD-AGKON.
perform bdc_field using 'BKPF-BUDAT'
RECORD-BUDAT.
perform bdc_field using 'BKPF-MONAT'
RECORD-MONAT.
perform bdc_field using 'BKPF-BUKRS'
RECORD-BUKRS.
perform bdc_field using 'BKPF-WAERS'
RECORD-WAERS.
perform bdc_field using 'RF05A-XPOS1(01)'
perform bdc_field using 'RF05A-XPOS1(03)'
'X'.
perform bdc_dynpro using 'SAPMF05A' '0731'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-SEL01(02)'.
perform bdc_field using 'BDC_OKCODE'
'=PA'.
data : A(20) type c,
IDX(2) TYPE C.
ADD 1 TO IDX.
LOOP AT RECORD1 WHERE INDEX = RECORD-index.
IF IDX > 10 .
perform bdc_dynpro using 'SAPMF05A' '0731'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-SEL01(02)'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
IDX = 1.
ENDIF.
CONCATENATE 'RF05A-SEL01(' IDX ')' INTO A.
ibdc-fnam = A .
IBDC-fval = RECORD1-SEL01.
append ibdc.
CLEAR IBDC.
CLEAR A.
IDX = IDX + 1.
ENDLOOP.
perform bdc_dynpro using 'SAPDF05X' '3100'.
perform bdc_field using 'BDC_OKCODE'
'=BS'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-ABPOS'.
perform bdc_field using 'RF05A-ABPOS'
'1'.
perform bdc_dynpro using 'SAPMF05A' '0700'.
perform bdc_field using 'BDC_CURSOR'
'RF05A-NEWBS'.
perform bdc_field using 'BDC_OKCODE'
'=BU'.
endform.
*& Form bdc_dynpro
* text
* -->P_0137 text
* -->P_0138 text
FORM bdc_dynpro using program type string screen type string.
ibdc-program = program.
ibdc-dynpro = screen.
ibdc-dynbegin = 'X'.
append ibdc.
clear ibdc.
ENDFORM. " bdc_dynpro
*& Form bdc_field
* text
* -->P_0142 text
* -->P_0143 text
FORM bdc_field USING fname type string fvale.
ibdc-fnam = fname.
ibdc-fval = fvale.
append ibdc.
clear ibdc.
ENDFORM. " bdc_field
Thanking you..
Manoj.Ramesh ,
I'll advise you, not to use a bdc-programm for ta's like fb50 - What woud you do, when SAP in future changes the table control to an alv grid control ??
So i advise you , to use Bapis or the standard interface
<b>RFBIBL00</b> to post fi-documents.
Andreas -
How to down-load the discussion forum portlet??
I am willing to download the discussion forum portlet from the
portalstudio site.
For that i was suppose to download and install WinCVS first.
I did that but while setting-up the cofiguration.
I had to enter my login name and password,provided by the
otn.oracle.com
WinCVS refused to recognize the login name
i m unable to understand the problem .
And i do not have any other option for downloading the
discussion forum portlet.
Is there any other way to download it
or is there something else ,which is to be done while
installing the WinCVSHi,
All the Materil master data is there in some of the tables.
MARA Material master
MAKT Material text
MARC Material per plant / stock
MVKE Material master, sales data
MARD Storage location / stock
MSKA Sales order stock
MSPR Project stock
MARM Units of measure
MEAN International article number
PGMI Planning material
PROP Forecast parameters
MAPR Link MARC <=> PROP
MBEW Material valuation
MVER Material consumption
MLGN Material / Warehouse number
MLGT Material / Storage type
MPRP Forecast profiles
MDTB MRP table
MDKP Header data for MRP document
MLAN Tax data material master
MTQSS Material master view: QM
So, down load as per your requirement in to Excel sheet and do the corrections and Upload with your Data Migration Tool.
Hope this helps..
Regards,
Siva -
Down load data from frames on the webpage
Hi all,
i have a scenario like, down load data from a web page.
i am able to make http requests using httpclient easily, i am receiving correct response also(i can say this as i get the same when i use browser for the same request, i checked page view source and confirmed that i got right response)
my data on the web page are in FRAMES , now when i do the request using the browser , i can view my data on the web page by selecting that particular frame , and view source of that particular frame)
if need to read the data using java program how can i navigate to that particular frame
the below is sample response when i make request to web page using http client
<link rel=STYLESHEET href="Detail.css" type="text/css">
<script language="JavaScript">
var jsp_path="";
var sfrw_servlet="Servlet";
var sfrw_report_view_servlet="Servlet1";
var sfrw_report_download_servlet="Servlet2";
</script>
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title> Website</title>
<script language="JavaScript" src="NavigationScripts.js"></script>
</head>
<FRAMESET ROWS="120,*" COLS="*" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0">
<!-- COGNIZANT MODIFY END 09/05/2007 -->
<FRAME NAME="Branding" SCROLLING="NO" NORESIZE SRC="Branding.jsp?navigationState=DEFAULT" >
<FRAMESET COLS="10,975,*" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="10" ROWS="*">
<FRAME NAME="Navigation" NORESIZE SCROLLING="NO" src="Blank.jsp">
<FRAMESET ROWS="37,*" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0" ROWS="*">
<FRAME NAME="Header" NORESIZE SCROLLING="NO" src="Blank.jsp">
<FRAME NAME="Detail" NORESIZE SCROLLING="AUTO" src="SearchAll.jsp">
</FRAMESET>
<FRAME NAME="Navigation1" NORESIZE SCROLLING="NO" src="Blank.jsp">
</FRAMESET>
</FRAMESET>
</HTML>actually i am not sure which frame of above response holds my data, lets suppose frame Detail holds my data , how can i get data from the frame
any help?
Edited by: LoveOpensource on Mar 28, 2008 5:39 AMtry FM KCD_EXCEL_OLE_TO_INT_CONVERT
data itab type table of KCDE_cells with header line.
CALL FUNCTION 'KCD_EXCEL_OLE_TO_INT_CONVERT'
EXPORTING
filename = 'C:\test.xls'
i_begin_col = 1
i_begin_row = 1
i_end_col = 3
i_end_row = 3
tables
intern = itab
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3
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.
write :/ itab-row, itab-col, itab-value.
endloop.
rgds,
PJ -
Default text is populated in header text while creating PO.
Hi All,
Can someone help me with some inputs on this issue.
1) <b> A particular PO header text is appearing by default when we click on Long Text tab and coming back in the TCode ME21.</b>
2) Irrespective of the organization details, Vendor or Material etc. for any PO these texts are appearing.
3) The path for example :
Test Example Enter some PO no. (4502756226), Goto Header ->Texts -> Texts Overview -> Header Text (Long Text Tab),<---This is where the defualt text is appearing.
4) Imp Note: These texts are appearing ONLY while creation of the PO, but when in Change (ME22) and in display (ME23) not appearing.
Could someone help me out on this.
My steps this far:
1) I tried finding if there is any userexit. I found that all the include files of all the userexits were empty.
2) Kindly suggest me if there any other way to search a solution for this.Krishna Hi,
Thanks!!!
Tried navigating through MM>Purchasing>Purchase order>Texts for PO>Define copying rules for header texts.
These are meant for coying the header texts right?
I unchecked the box there and the default header text still appears.
Tell me if i erred somewhere in the above steps you had told.
In the meantime..am also trying to hunt down on the FM "read_text" that
probably is triggering the defualt text to get copied.
Your answer helped me look at the problem from a diff perspective.
Thanks Krishna.
Regards,
Thejas -
Header text updation at the time of IP10
When the user converts the maintanence plan for PRS at the time of IP10 the user wants to know the below
1. Need to get the prs number in the footer so that immediately he can not it down
2. They have some specific text to be updated in the PRS where while converting that in to po the same will get reflected in the PO print previe
at the time of creation of PR itself the same text need to get updated in PR header text and as well as in the item levelPRAVANESH TN,
You post isn't clear...
I'm assuming that a PRS is a purchase requisition??
And where is this text coming from?
PeteA
Maybe you are looking for
-
Hello, I'm having trouble with 2 apps of ipad. Facebook and skype aren't showing the notifications but others apps are. what can it be? is it a problem of ipad? =) w8 for answer
-
The subject line basically covers it. I've been planning on extending my coverage on my Apple Care Protection Plus from the 1 year to the 3 year, but missed the deadline by ONE DAY and now no longer see extending coverage as an option when I look up
-
Windows Xp not recognizing Ipod
I tried to install my new Ipod Nano but it didn't work : during the installation, the first time I connected My Ipod, windows warned me not to intsall it. I Try to start again, but nothing happened, except the little noise, telling me a new usb is co
-
Adobe InDesign CS6 Plugin does not recognize .InDesignPlugin as a valid plugin
Adobe CS6 fully updated with Mac OS X Lion 10.7.5 I have two complete labs that now have the below error messages when the user login. This suddenly started just a few days ago. No Adobe updates were applied to the lab in the labs month so it should
-
Dear All, Need Your Help. When I am trying to connect to Ecatt through Qtp i am getting the follwing Error "Connect from SAP Gateway to RFC server failed". Error : timeout during allocate. Don`t know the reason for the same. I am able to login into S