Some of the data for same records is going on to the next page in excel??
Hello,
I designed a template in word with page setup orientation to Landscape, to get the Excel report output. Later when i preview the same in Excel with the Landscape page setup..the print preview is showing me with some of the data going out of the page set up.My font size for data in word I put is 8pt Times New Roman.
Basically..my requirement is to print the report in excel with the landscape page setup.
But some of the data for same records is going on to the next page in excel??
How do i prevent this from happening?
Thanks in Advance!
Hello
The blog suggested above is to set the output for a PDF document using RTF template. Whereas, my requirement is to get a excel output using RTF template, with data fitting directly with in the landscape orientation of EXCEL when printed.
Basically, the requirement is : When i run the report, the excel output should be sent to a printer with style 'Landscape' from apps?? But the problem is that i am not getting all the pagebreaks i put in the RTF template and also some of the data for the same records is not fitting in to the landscape orientation of the excel while it gets printed.
But when i run the same as a PDF everything is fine... ..But that's not my requirement...Please help!
Thanks,
Similar Messages
-
Upload the data for sales order using BAPI
hi experts,
how to upload the data for sales order using BAPI.
what is the FM?
it would be much helpful if i have the sample code as i am very new to BAPI.
thanks and Regards
ShyamHi Shyam
Its very useful for u
BAPISDORDER_GETDETAILEDLIST
BAPI_ACC_SALES_ORDER_CHECK
BAPI_ACC_SALES_ORDER_POST
BAPI_ACC_SALES_QUOTA_CHECK
BAPI_ACC_SALES_QUOTA_POST
Reward all the helpful answers..
With Regards
Navin Khedikar -
Can I create a Depart Date for a record, from the Arrive Date in the next record?
I have a Customer database with the tables tblCustomers and tblAddress. The tblCustomers has the following fields; CustomerID, CustomerName. The tblAddress has the following fields; CustomerID, Address, Town, County, ArriveDate. When a customer calls us
we start a new record with the CustomerID, CustomerName, Address, Town, County. The ArriveDate is left blank. When my service guy calls to the customer he fills in the ArriveDate field. We do not have a LeaveDate field. He could be there from 1 day up
to 5 days. Each day he is is there he adds another record with all the above data, including the date in the ArriveDate field. If he finishes on a Friday he will take Saturday and Sunday off. On Monday he moves to the next customer, he has a new
customer/location record waiting for him, as before he fills in the ArriveDate and starts working. If he finishes with a customer midweek he will go straight to the next customer where there is a new customer/location record waiting for him to fill in
the ArriveDate. It looks something along these lines;
CustomerID CustomerName Address Town County
ArriveDate
5437 Mr.A 123 Main St
Nenagh Tipperary 01/01/2015
5437 Mr. A 123 Main St. Nenagh
Tipperary 02/01/2015
5437 Mr. A 123 Main St. Nenagh Tipperary 03/01/2015
off Saturday and Sunday
7890 Mr. B 77 The Avenue Tralee Kerry
06/01/2015
7890 Mr. B 77 The Avenue Tralee Kerry
07/01/2015
I want to generate a DepartDate which will be generated when the Address, County and/or Town fields change from the previous record. The Depart Date should be equal to the last of the Arrive Dates before the Address, Town and County fields change to
the new customer/address.
Is this possible to do, i would appreciate any help with this.Hi NewAccessLearner,
For the results of the query, I think you accord the logic below to find the DepartDate, but the sql query would be much complex.
Take the 123A to make a simple demo:
#1 check the ArriveDate of the next date whether it exist in the ArriveDate
DepartDate
Expr1000
t1.CustomerID
t2.CustomerID
Address
Town
County
ArriveDate
1/2/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/1/2015
1/3/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/2/2015
1/4/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/3/2015
1/8/2015
5437
5437
123 Main St
Nenagh
Tipperary
1/7/2015
6/2/2015
7890
7890
77 The Avenue
Tralee
Kerry
6/1/2015
In the first column the “1/4/2015” is not in the ArriveDate, and then the “1/3/2015” would be the date for DepartDate.
I am not familiar with sql query, I think you need to ask the sql experts for help.
Best Regards,
Leo -
ALV Grid - capturing the data of checked records
Hi All,
I have a report with ALV Grid display and it displays the contents of a custom table. Each record has a CHBOX, and I want to capture the data of all checked records in to an internal table when 'create Order' button is pressed. Please help me.
Thanks,
Neelu.Hi neelu,
Find attached complete code for the check box in ALV
REPORT ZTESTPRG .
TABLES AND DATA DECLARATION.
*TABLES: mara,makt.",marc.
data syrepid like sy-repid.
data sydatum(10). " LIKE sy-datum.
data sypagno(3) type n.
WHEN USING MORE THAN ONE TABLE IN ALV WE NEEED TO DECLARE THE TYPE
GROUP (TYPE-POOLS--------->SLIS)
type-pools : slis.
INTERNAL TABLE DECLARATION.
INTERNAL TABLE TO HOLD THE VALUES FROM THE MARA TABLE
data: begin of t_mara occurs 0,
matnr like mara-matnr,
meins like mara-meins,
mtart like mara-mtart,
matkl like mara-matkl,
end of t_mara.
INTERNAL TABLE TO HOLD THE CONTENTS FROM THE EKKO TABLE
data : begin of t_marc occurs 0,
matnr like mara-matnr,
werks like marc-werks,
minbe like marc-minbe.
data: end of t_marc.
INTERNAL TABLE TO HOLD THE VALUES FROM MAKT TABLE.
data : begin of t_makt occurs 0,
matnr like mara-matnr,
maktx like makt-maktx,
spras like makt-spras,
end of t_makt.
INTERNAL TABLE WHICH ACTUALLY MERGES ALL THE OTHER INTERNAL TABLES.
data: begin of itab1 occurs 0,
chkbox(1) type c,
matnr like mara-matnr,
meins like mara-meins,
maktx like makt-maktx,
spras like makt-spras,
werks like marc-werks,
minbe like marc-minbe,
end of itab1.
THE FOLLOWING DECLARATION IS USED FOR DEFINING THE FIELDCAT
AND THE LAYOUT FOR THE ALV.
HERE AS slis_t_fieldcat_alv IS A INTERNAL TABLE WITHOUT A HEADER LINE
WE EXPLICITELY DEFINE AN INTERNAL TABLE OF THE SAME STRUCTURE AS THAT
OF slis_t_fieldcat_alv BUT WITH A HEADER LINE IN THE DEFINITION.
THIS IS DONE TO MAKE THE CODE SIMPLER.
OTHERWISE WE MAY HAVE TO DEFINE THE STRUCTURE AS IN THE NORMAL SAP
PROGRAMS.
IN THE FIELDCATALOG TABLE WE ACTUALLY PASS THE FIELDS FROM ONE OR
MORE TABLES AND CREATE A STRUCTURE
IN THE LAYOUT STRUCTURE WE BASICALLY DEFINE THE FORMATTING OPTIONS
LIKE DISPLAY IN THE ZEBRA PATTERN ,THE HOTSPOT OPTIONS ETC.
data: fieldcatalog type slis_t_fieldcat_alv with header line,
fieldlayout type slis_layout_alv.
DECLARING THE EVENTTABLE INTERNL TABLE FOR USING EVENTS LIKE
TOP-OF-PAGE ETC.
data : eventstab type slis_t_event with header line.
DECLARING AN INTERNAL TABLE TO HOLD THE DATA FOR THE TOP-OF-PAGE
data : heading type slis_t_listheader with header line.
data : heading1 type slis_t_listheader with header line.
data : heading2 type slis_t_listheader with header line.
data : heading3 type slis_t_listheader with header line.
data : heading4 type slis_t_listheader with header line.
data : heading5 type slis_t_listheader with header line.
data : heading6 type slis_t_listheader with header line.
data : heading7 type slis_t_listheader with header line.
data : heading8 type slis_t_listheader with header line.
STRUCTURE TO PASS THE COLOR ATTRIBUTES FOR DISPLAY.
data : colorstruct type slis_coltypes.
INITIALIZATION. *
initialization.
syrepid = sy-repid.
sypagno = sy-pagno.
clear fieldcatalog.
START-OF-SELECTION. *
start-of-selection.
SUBROUTINE TO POPULATE THE COLORSTRUCT
perform fill_colorstruct using colorstruct.
SUBROUTINE TO POPULATE THE FIELDS OF THE FIELD CATALOGUE
perform populate_fieldcatalog.
SUBROUTINE TO SELECT DATA FROM VARIOUS TABLES AND POPULATE IT IN THE
INTERNAL TABLE.
perform selectdata_and_sort.
SUBROUTINE TO POPULATE THE LAYOUT STRUCTURE.
perform populate_layout using fieldlayout.
SUBROUTINE TO CALL THE FUNCTION MERGE TO ENSURE PROPER DISPLAY.
perform merge_fieldcatalog.
SUBROUTINE TO POPULATE THE EVENTSTAB.
perform fill_eventstab tables eventstab.
SUBROUTINE TO POPULATE THE HEADING TABLES.
perform fill_headingtable tables heading using 'HEADING'.
perform fill_headingtable tables heading1 using 'HEADING1'.
perform fill_headingtable tables heading2 using 'HEADING2'.
perform fill_headingtable tables heading3 using 'HEADING3'.
perform fill_headingtable tables heading4 using 'HEADING4'.
perform fill_headingtable tables heading5 using 'HEADING5'.
perform fill_headingtable tables heading6 using 'HEADING6'.
perform fill_headingtable tables heading7 using 'HEADING7'.
perform fill_headingtable tables heading8 using 'HEADING8'.
SUBROUTINE TO DISPLAY THE LIST.
perform display_alv_list.
FORMS
IN THIS SUBROUTINE WE POPULATE THE FIELDCATALOG TABLE WITH THE NAMES
OF THE TABLE,FIELDNAME,WHETHER IT IS KEY FIELD OR NOT,HEADING AND
COLUMN JUSTIFICATION.
form populate_fieldcatalog.
perform fill_fields_of_fieldcatalog tables fieldcatalog
using 'ITAB1' 'MATNR' 'X' .
perform fill_fields_of_fieldcatalog tables fieldcatalog
using 'ITAB1' 'MEINS' ' '.
perform fill_fields_of_fieldcatalog tables fieldcatalog
using 'ITAB1' 'MAKTX' ' ' .
perform fill_fields_of_fieldcatalog tables fieldcatalog
using 'ITAB1' 'MTART' ' ' .
perform fill_fields_of_fieldcatalog tables fieldcatalog
using 'ITAB1' 'MATKL' ' ' .
perform fill_fields_of_fieldcatalog tables fieldcatalog
using 'ITAB1' 'SPRAS' ' ' .
perform fill_fields_of_fieldcatalog tables fieldcatalog
using 'ITAB1' 'WERKS' ' ' .
perform fill_fields_of_fieldcatalog tables fieldcatalog
using 'ITAB1' 'MINBE' ' ' .
endform. " POPULATE_FIELDCATALOG
FORM FILL_FIELDS_OF_FIELDCATALOG *
--> FIELDCATALOG *
--> P_TABNAME *
--> P_FIELDNAME *
--> P_KEY *
--> P_KEY *
form fill_fields_of_fieldcatalog tables fieldcatalog
structure fieldcatalog
using p_tabname
p_fieldname
p_key.
p_no_out.
fieldcatalog-tabname = p_tabname.
fieldcatalog-fieldname = p_fieldname.
fieldcatalog-key = p_key.
fieldcatalog-emphasize = '1234'.
*fieldcatalog-no_out = p_no_out.
append fieldcatalog.
endform. " FILL_FIELDSOFFIELDCATALOG
FORM POPULATE_LAYOUT *
--> FIELDLAYOUT *
form populate_layout using fieldlayout type slis_layout_alv.
fieldlayout-f2code = '&ETA' .
fieldlayout-zebra = 'X'.
FOR THE WINDOW TITLE.
fieldlayout-window_titlebar = 'ALV with Events'.
fieldlayout-colwidth_optimize = 'X'.
fieldlayout-no_vline = ' '.
*fieldlayout-no_input = 'X'.
fieldlayout-confirmation_prompt = ''.
fieldlayout-key_hotspot = 'X'.
This removes the column headings if the flag is set to 'X'
fieldlayout-no_colhead = ' '.
*fieldlayout-hotspot_fieldname = 'MAKTX'.
fieldlayout-detail_popup = 'X'.
fieldlayout-coltab_fieldname = 'X'.
fieldlayout-box_fieldname = 'CHKBOX'.
fieldlayout-edit_mode = 'X'.
endform. " POPULATE_LAYOUT
FORM SELECTDATA_AND_SORT *
form selectdata_and_sort.
select matnr meins mtart matkl from mara
into corresponding fields of t_mara
up to 500 rows .
select matnr maktx spras from makt
into corresponding fields of t_makt
where matnr = t_mara-matnr and
spras = sy-langu.
select matnr werks minbe from marc
into corresponding fields of t_marc
where matnr = t_mara-matnr.
append t_marc.
endselect.
append t_makt.
endselect.
append t_mara.
endselect.
perform populate_itab1.
sort itab1 by matnr.
endform. " SELECTDATA_AND_SORT
FORM MERGE_FIELDCATALOG *
form merge_fieldcatalog.
call function 'REUSE_ALV_FIELDCATALOG_MERGE'
exporting
i_program_name = syrepid
i_internal_tabname = 'ITAB1'
i_structure_name = 'COLORSTRUCT'
I_CLIENT_NEVER_DISPLAY = 'X'
i_inclname = syrepid
changing
ct_fieldcat = fieldcatalog[]
exceptions
inconsistent_interface = 1
program_error = 2
others = 3.
endform. " MERGE_FIELDCATALOG
IN THIS FUNCTION THE MINIMUM PARAMETERS THAT WE NEED TO PASS IS AS
FOLLOWS:-
i_callback_program --> CALLING PROGRAM NAME
i_structure_name --> STRUCTURE NAME.
is_layout --> LAYOUT NAME.
it_fieldcat ---> BODY OF THE FIELD CATALOGUE INTERNAL TABLE
form display_alv_list.
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
I_INTERFACE_CHECK = ' '
i_callback_program = syrepid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
i_structure_name = 'ITAB1'
is_layout = fieldlayout
it_fieldcat = fieldcatalog[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
THE FOLLOWING PARAMETER IS SET AS 'A' INORDER TO DISPLAY THE STANDARD
TOOL BAR
i_save = 'A'
IS_VARIANT = ' '
it_events = eventstab[]
IT_EVENT_EXIT =
IS_PRINT =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
tables
t_outtab = itab1
exceptions
program_error = 1
others = 2.
endform. " DISPLAY_ALV_LIST
*& Form POPULATE_ITAB1
text
--> p1 text
<-- p2 text
form populate_itab1.
loop at t_mara.
loop at t_makt where matnr = t_mara-matnr.
loop at t_marc where matnr = t_mara-matnr.
move-corresponding t_mara to itab1.
move-corresponding t_makt to itab1.
move-corresponding t_marc to itab1.
append itab1.
endloop.
endloop.
endloop.
endform. " POPULATE_ITAB1
*& Form FILL_EVENTSTAB
text
-->P_EVENTSTAB text *
form fill_eventstab tables p_eventstab structure eventstab.
WHEN THE FOLLOWING FUNCTION IS CALLED THE SYSTEM POPULATES THE
INTERNAL TABLE EVENTSTAB WITH A LIST OF EVENTS NAME.
AS SHOWN BELOW WHEN USING I_LIST_TYPE = 0 THE FUNCTION RETURNS 14
EVENTS NAME.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = p_eventstab[]
exceptions
list_type_wrong = 1
others = 2.
BY CALLING THE ABOVE FUNCTION WE FIRST POPULATE THE EVENTSTAB WITH
THE PREDEFINED EVENTS AND THEN WE MOVE THE FORM NAME AS SHOWN BELOW.
WE ASSIGN A FORM NAME TO THE EVENT AS REQUIRED BY THE USER.
FORM NAME CAN BE ANYTHING.THE PERFORM STATEMENT FOR THIS FORM
IS DYNAMICALY CALLED.
read table p_eventstab with key name = slis_ev_top_of_page.
if sy-subrc = 0 .
move 'TOP_OF_PAGE' to p_eventstab-form.
append p_eventstab.
endif.
read table p_eventstab with key name = slis_ev_top_of_coverpage.
if sy-subrc = 0 .
move 'TOP_OF_COVERPAGE' to p_eventstab-form.
append p_eventstab.
endif.
read table p_eventstab with key name = slis_ev_end_of_coverpage .
if sy-subrc = 0 .
move 'END_OF_COVERPAGE' to p_eventstab-form.
append p_eventstab.
endif.
read table p_eventstab with key name = slis_ev_foreign_top_of_page.
if sy-subrc = 0 .
move 'FOREIGN_TOP_OF_PAGE' to p_eventstab-form.
append p_eventstab.
endif.
read table p_eventstab with key name = slis_ev_foreign_end_of_page.
if sy-subrc = 0 .
move 'FOREIGN_END_OF_PAGE' to p_eventstab-form.
append p_eventstab.
endif.
read table p_eventstab with key name = slis_ev_list_modify.
if sy-subrc = 0 .
move 'LIST_MODIFY' to p_eventstab-form.
append p_eventstab.
endif.
read table p_eventstab with key name = slis_ev_top_of_list.
if sy-subrc = 0 .
move 'TOP_OF_LIST' to p_eventstab-form.
append p_eventstab.
endif.
read table p_eventstab with key name = slis_ev_end_of_page.
if sy-subrc = 0 .
move 'END_OF_PAGE' to p_eventstab-form.
append p_eventstab.
endif.
read table p_eventstab with key name = slis_ev_end_of_list .
if sy-subrc = 0 .
move 'END_OF_LIST' to p_eventstab-form.
append p_eventstab.
endif.
endform. " FILL_EVENTSTAB
*& Form FILL_HEADINGTABLE
text
-->P_HEADING text *
form fill_headingtable tables p_heading structure heading
using tablename.
case tablename.
when 'HEADING'.
p_heading-typ = 'H'.
concatenate
' REPORT NAME:-' syrepid
' ABB Industry Pte Ltd' into p_heading-info.
append p_heading.
write sy-datum using edit mask '__/__/____' to sydatum.
concatenate
' DATE:-' sydatum ' USER: ' sy-uname 'PAGE NO:' sypagno
into p_heading-info.
append p_heading.
when 'HEADING1'.
p_heading-typ = 'H'.
p_heading-info = 'TOP-OF-COVER-PAGE'.
append p_heading.
when 'HEADING2'.
p_heading-typ = 'H'.
p_heading-info = 'END-OF-COVER-PAGE'.
append p_heading.
when 'HEADING3'.
p_heading-typ = 'H'.
p_heading-info = 'FOREIGN-TOP-OF-PAGE'.
append p_heading.
when 'HEADING4'.
p_heading-typ = 'H'.
p_heading-info = 'FOREIGN-END-OF-PAGE'.
append p_heading.
WHEN 'HEADING5'.
P_HEADING-TYP = 'H'.
P_HEADING-INFO = 'LIST-MODIFY'.
APPEND P_HEADING.
when 'HEADING6'.
p_heading-typ = 'H'.
p_heading-info = 'END-OF-PAGE'.
append p_heading.
when 'HEADING7'.
p_heading-typ = 'H'.
p_heading-info = 'END-OF-LIST'.
append p_heading.
when 'HEADING8'.
p_heading-typ = 'H'.
p_heading-info = 'TOP-OF-LIST'.
append p_heading.
endcase.
endform. " FILL_HEADINGTABLE
FORM TOP_OF_PAGE *
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = heading[]
exceptions
others = 1.
endform.
*& Form FILL_COLORSTRUCT
text
-->P_COLORSTRUCT text *
form fill_colorstruct using p_colorstruct type slis_coltypes .
p_colorstruct-heacolfir-col = 6.
p_colorstruct-heacolfir-int = 1.
p_colorstruct-heacolfir-inv = 1.
endform. " FILL_COLORSTRUCT
FORM TOP_OF_COVERPAGE *
form top_of_coverpage.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = heading1[]
exceptions
others = 1.
endform.
FORM END_OF_COVERPAGE *
form end_of_coverpage.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = heading2[]
exceptions
others = 1.
endform.
FORM FOREIGN_TOP_OF_PAGE *
form foreign_top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = heading3[]
exceptions
others = 1.
endform.
FORM FOREIGN_END_OF_PAGE *
form foreign_end_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = heading4[]
exceptions
others = 1.
endform.
FORM LIST_MODIFY *
*FORM LIST_MODIFY.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = HEADING5[]
EXCEPTIONS
OTHERS = 1.
*ENDFORM.
FORM END_OF_PAGE *
form end_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = heading6[]
exceptions
others = 1.
endform.
FORM END_OF_LIST *
form end_of_list.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = heading7[]
exceptions
others = 1.
endform.
FORM TOP_OF_LIST *
form top_of_list.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = heading8[]
exceptions
others = 1.
endform.
*--- End of Program
Thanks
Mahesh -
Error message: The data for filename was already added to the form
I recently modified an existing data-collection PDF - only mod was to add some additional pull-down menu options in two fields. I went thru the Distribution wizard, tested the revised form, added the PDF to the Responses file...everything seemed fine. Next day, I distributed the revised form, and had 22 submissions. When adding the 22 submissions to the Response file, 6 or 7 bounced with the error message "The data for <filename> was already added to the form", even though that was not true. I went back, cleared all, and added one of the "bad" files to the response form. It went in OK, but I could not add another "bad one". Although several of the forms may be submitted by the same person, the data is different in all of the submissions, plus, we've been doing this procdure for over a year and never had an issue until now.
The original form may have been created in Acrobat X, and I have Acrobat 9 Pro. Not sure if that is part or all of the answer. Thanks for any insights...I saw a posting in the Reader side, but I can't see any answers.Hi
According to your error message, we need to verify if Microsoft SQL Server Compact appears in the
Change Data Source dialog. If not, you need to install
SQL Server Compact components for Visual Studio firstly, and if you choose to install SQL Server Compact 4.0 , you should note that SQL Server Compact 4.0 supports in Visual Studio 2010 Service Pack 1 or later versions. I recommend you to install the latest
Service Pack (SP) of SQL Server Compact, and latest SP of Visual Studio, then check if the error still occurs. For more information, see:
http://blogs.msdn.com/b/sqlservercompact/archive/2011/03/15/sql-server-compact-4-0-tooling-support-in-visual-studio-2010-sp1-and-visual-web-developer-express-2010-sp1.aspx
However if there is no problem with the installation of SQL Server Compact, it will be an issue that regards ASP.NET and website deployment. I suggest you to post the question in the ASP.NET forums at
http://forums.asp.net/ . It is appropriate and more experts will assist you.
In addition, you can review the following link:
Working with SQL Server Compact in Visual Studio:http://msdn.microsoft.com/en-us/library/gg606540(v=vs.100).aspx
Thanks
Lydia Zhang -
I want to retrieve data for condition record during certain time period.
Hi Experts,
Please suggest me some T-Code for retrieving condition record date or Database Table where I can access the data with the combination of Sales Organization, distribution channel, customer and plant.
Looking for your expert comments....
<< Moderator message - Everyone's problem is important. But the answers in the forum are provided by volunteers. Please do not ask for help quickly. >>
thanks in advance..
With Best Regards,
Bharat B
Edited by: Rob Burbank on Jan 21, 2011 5:40 PMTo search for data/all the relevant condition for a particular condition type(like for example PR00) for a particular date range you can got to VK13 and give that particular condition type for which you want the data for.After giving he condition type click on key combinations and choose for which condition you want the data for.
Like for example I want to fetch the data for PR00 then I will go to VK13 ,give PR00 then choose the relevant combination and then take a F1 for the first field.by this I will be able to determine the table in which all the condition data is stored for the particular combination.Like for the combination of sales org./dist channel./customer/material we have the table A815.Now by going to SE16 and giving table as A815 i will be able to fetch all the relevant data.(in your case based upon the valid from and valid to date).You can also use table KONP for a particular condition record number details. -
Make the data for a registry key point to the installati​on folder of my app.
I have an application that creates files with a unique file extension (.myextension). These files should be associated with a particular icon so that the icon is shown when they are viewed in Windows Explorer, etc. I know how to do this when I create an installer by adding several registry keys and values under the [HKEY_CLASSES_ROOT] key as shown below.
key name type data
[HKEY_CLASSES_ROOT]
.myextension (Default) REG_SZ Myextension.file.type.record
Myextension.file.type.record (Default) REG_SZ Text description of file type
DefaultIcon (Default) REG_SZ path to the icon file.
The key for the file extension record (.myextension) has a default value where the data points to the key for the file type record (Myextension.file.type.record). The data for the default value of the Myextension.file.type.record key is just a description for the file type. There is also a subkey called DefaultIcon. The data for it's default value is the path to the file containing the icon that is to associated with the file type. If the file contains more than one icon, it may be necessary to modify the data (path) to indicate which icon to use.
So, this is all good if path to the file containing the icon is known. I added an icon file to the build when I built my application and it will be installed in a known location within the directory where my application is installed. The location is [InstallDirectory]data\myicon.ico, where [InstallDirectory] is the directory where my application is installed. The installation process, including the addition of registry keys is handled by an installer that I have created. The problem arises when the user choses to install to a location other than the default directory specified in the installer. I can't know before hand where that will be. How can I specify the path in the DefaultIcon key so that it points to the correct location after installation? Is there some symbol that I can use for the installation directory so that the path will be set correctly at installation time?Hi cbfsystems,
If correctly understand what you are trying to do, check this out. This shows you how to add a user-specified install directory to a registry entry in the installer build spec.
Cheers,
Brian A.
National Instruments
Applications Engineer -
Hi,
I have migrated my Sharepoint from 2010 to 2013.I am able to get the data at the first time of refresh when I click on refresh for the second time I am getting the empty the sheet.
below find the flow of refresh
First Refresh
On Click of refresh open the workbook with excel services and return the session id.
Using that session I am invoking RefrehAsync method of excel services
After refresh completed I am setting the calculation of workbook as automatic(to calculate the formulas) using the same session id
After setting the calculation as Automatic I am setting the calculation type as full(recalculate) using the same session id.
Now I am able to see the data
Second Refresh
After clicking on refresh instead of opening the workbook I am using the session id(already opened workbook) and setting the calculation type as manual
I am following the same process from refresh(RefreshAsync) as I have followed in first refresh.
This time my formulas are not getting calculated because of that I am not able to see the data.
Could you please let me know that am I missing anything here?
Is this know issue in Sharepoint2013 excel services as same code is working fine with Sharepoint2010.
If I close the workbook(session id null) and opens(new session id) for all the refreshes it is working and I am able to see the data.
Thanks,
Meenakshi Nagpal
N.MeenakshiI am able to see the data for the second refresh if I change the data source.If I use the same data source which is used in the first refresh I am not getting the data.Excel services will contact the cubes and calculate the formulas in my workbook.
Could you please let me know what could be the problem at second refresh while contacting the same data source with same session id?
Please help me asap.
Thanks,
Meenakshi Nagpal
N.Meenakshi -
How to save the data for multiple sittings
Hello All
i have one sign up form. user enter only 4 to 5 fields & he may not fill the the manditory field & he left. but data base don’t give the error to him. but next day he will come at then he want to complet his sign up i.e. when he commit the all detail that time all validation will hapen.
for that i use one table without constrain to store the temarory detail.& use other table (with constrains) for final submition.
1) i creat the view n entity for temparory table
2) & also i create views n entity for Final table
n i create one methos in AmImple file in that file I create one method & expose to client n I drag n drop this method as a ADF Button & in that method I write the following logic
1) taking the data from one view (from temporary table) & setting the value to other view(Final table).
using this i set the value from tempary to final table...
but when user left the manditory field then it allow to submit the data in temparory field but when i copy that data to final table(with constrain) n user submit the data then validation happn i.e. "this fild is mandatory".when i click this error message it goes to first screen.
I try to implement this functionality…but its not working.
can u plz suggest other way to implement this functionality in ADF using jdevloper11g
Thanks in AdvanceUser,
I don't get it :-(
How do you find out if a user comes back or is completely new? You have to have some information about the user to remember him. At least this information has to be mandatory (even for the temporary table).
Let's assume you have figured out that the user has been on your page before:
load his credentials from the temporary table to the form, let him fill in the rest and if he hit save save it in the final table.
Timo -
Hi, I set up my new iPhone S4 with iclouds. So the data of my old S3 should move to the S4. However, some applications could not be loaded on the S04. Now some apps are loaded and others not . How can I progress?
Thanks. I can change the forwarding settings in Gmail to be either POP or IMAP. That is quite simple. I just looked at those settings on the Gmail server and, to my surprise, both are enabled. In order for outlook client on my computer to receive IMAP emails I have to change the email account settings in my current outlook from POP to IMAP. I don't need to be using the Exchange version of Outlook to receive IMAP. I guess I'll do a little research tomorrow on Exchange so i can figure out what, if anything, it might do for me.
I glanced at the link you sent me and it looks like it might be very helpful - another project for tomorrow.
BTW: I hit "This Solved my Question" by accident. I meant only to "like' your response so you would get some benefit from the help you've given me so far. I hope I haven't discouraged others from taking a shot at helping me. I suspect there is more than one way to approach this and, as you know, my problem isn't really solved until I have what I need all set up and running smoothly. -
How to populate the data for additional fields in custom report of fbl5n tr
hallo friends,
i ha ve to add some fields to the output of custome report of transaction FBL5N.
Till now i have only added the fields to the output.
Now i have to write the code to populate the data for those fields in the program.
1. Customer Credit Group(ACM/RCM): (Table: KNKK; Field Name: VKORG )
2. Credit Representative Group: (Table: KNKK; Field Name: SBGRP)
3. Customer Account Number(CAN#): (Table: KNKK; Field Name: KNKLI)
4. Alternative Payer(ALTP#) : (Table: KNA1; Field Name: KUNNR)
5. Risk Category: (Table: KNKK; Field Name: CTLPC)
6. Credit Info Number: (Table: KNKK; Field Name: KRAUS)
7. Rating: (Table: KNKK; Field Name: DBRTG)
8. Payment Index: (Table: KNKK; Field Name: DBPAY)
9. Credit control area: (Table: KNKK; Field Name: KKBER)
10. Company code: (Table: KNB1; Field Name: BUKRS)
11. Sales Organization: (Table: KNVV; Field Name: VKORG)
These are al fields i have to populate in the program..
MY ATTEMPTS:
I tried getting the data for KNKK table by GET KNKK ,but it is giving some garbage values...
And Logical database used here is DDF,and i have to add the VKORG of KNVV too...but KNVV is not there in DDF...
Can anybody tell me how should i proceed..
thanks in advance.Thnx Andreas,
i have following doubts again..
I have to add sales organisation field to the selection screen...(this is given in the req.)
now if i will say GET KNKK...it would not keep account of this 'sales organisation' field...so how should i fetch the data with these input data( i.e. 'compny code' and 'customer' are the fields given by LDB and 'sales oraganisation' is the field i put it on the selection screen)
And what about the KNVV-VKORG ,because the KNVV is not present in the LDB. -
Error occured while uploading the data for Tocde QP01 (BDC)
Hi,
I am facing a strange problem i.e. when i try to upload the data for the Tcode QP01 i am able to upload the data for the 18 rows but when it is more than 18 ,it gives the following error and saves the data upto 18 rows only :-
CALL_TRANSACTION QP01 returncode: 0 RECORD: 0
S Field RC27X-FLG_SEL . not found in loop of screen SAPLCPDI 1400
S Cursor field PLMKB-VERWMERKM (18) does not exist in the screen
S Field PLMKB-VERWMERKM (18) does not exist in the screen SAPLQPAA 0150
S Field PLMKB-STICHPRVER (18) does not exist in the screen SAPLQPAA 0150
S Inspection plan with plan group 12775 for material 200999 is saved
Is there any way to solve this problem...hi,
Ok,i agree with you but the thing is it was allowing to upload the data for more than 18 rows as there was logic written. It is specified in the code:-
ELSEIF itab1-serial > 18 AND itab1-serial < 35.
IF index = 19.
index = 2.
ENDIF.
Edited by: nav009 on Sep 9, 2009 8:25 AM -
Function module to determine the date for the nth weekday of the mth month
Hey folks,
Is there a function module which determines the date for the mth weekday of the nth month in the pth year.
For instance, if I input 2nd thursday of the 4th month in 2008, it should return me, 04/10/2008 (MM/DD/YYYY).
Thanks and Best Regards,
Puja.Hi Ravi,
Hadn't been able to work on this lately...You solution was quite close, but did not work for a few scenarios....I tweaked the logic a bit to take care of them as well...
So here goes the code:
================================================
DATA first_day_of_month TYPE datum.
DATA day TYPE p.
CONCATENATE year month '01' INTO first_day_of_month.
CALL FUNCTION 'DAY_IN_WEEK'
EXPORTING
datum = first_day_of_month
IMPORTING
wotnr = day.
DATA day_number TYPE numc2.
IF day = weekday.
IF recur = 1.
DATA ls_date(10) TYPE c.
CONCATENATE month '/01/' year INTO ls_date.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = ls_date
IMPORTING
date_internal = date.
ELSE.
day_number = ( ( recur - 1 ) * 7 ) + 1.
ENDIF.
ELSEIF day < weekday.
day_number = ( ( recur - 1 ) * 7 ) + ( weekday - day ) + 1.
ELSE.
day_number = ( ( recur - 1 ) * 7 ) + ( 7 - day ) + weekday + 1.
ENDIF.
IF date IS INITIAL.
CONCATENATE year month day_number INTO date.
ENDIF.
====================================
There still could be some loopholes in this....am not sure....but it sure did seem to work for a couple of random checks that I performed.
Brownie points to you for giving me a direction.
Thanks,
Puja. -
In which tables are the data for the aplication KSB1?
I'm getting data from Qlik View with a BI tool called Qlik View.
I need help to find in which tables are the data for KSB1 aplication.
I've found something in COBK and COEP but there's more table involved since I didn't find all data.
Somente can help me please?
Regards.
RobsonI ran a trace and found some tables that may help you.
COVP(View)
CSKT
CSLT
CSKS
CSKU
AUFK
Thanks
Rathish -
Lookup Data For Each Record of Result Set
I'm trying to determine if the following task is possible in BPEL and how to implement it.
Assume I have two DB Adapters returning data from two different databases.
The first excepts no inputs returns 5 records in a collection looking somewhat like the following.
Order ID, Item ID
1, 2
2, 1
3, 1
4, 2
5, 3
The second accepts an Item ID as input and returns the description for that item.
I would like the output of the BPEL Process to look like this.
Order ID, Item ID, Item Desc
1, 2, Computer
2, 1, Desk
3, 1, Desk
4, 2, Computer
5, 3, Lamp
I'm new to BPEL and I'm assuming this will involve invoking the first db adapter link and then iterator through the result set calling the second db adapter link for each record but I'm not sure where to start. I'm hoping someone can give me a simple example that I can play with. I've looked at How to iterate through multiple records read from a file adapter? and How to pass a single element in an array to XSL from BPEL but I'm getting lost.
ThanksI just got it working in the BPEL for-each loop by creating a variable of type Order which I then assigned the results from that loop and then appended them to my output variable. I'd be interested in seeing how I could do that within a transformation if its quicker. How do I append in a transformation so that I can add the row after each loop.
Here is the BPEL so far.
I will note that I think just fetching a complete copy of both data sources and merging wouldn't be ideal as my items table could contain a million records or more and I'm only wanting to fetch the ones I'm interested in.
Thanks
<?xml version = "1.0" encoding = "UTF-8" ?>
<!--
Oracle JDeveloper BPEL Designer
Created: Thu Dec 19 10:16:29 CST 2013
Author: shawn.c.weeks.ctr
Type: BPEL 2.0 Process
Purpose: Synchronous BPEL Process
-->
<process name="Lookup_Orders"
targetNamespace="http://xmlns.oracle.com/Order_Lookup/Sales_System/Lookup_Orders"
xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:client="http://xmlns.oracle.com/Order_Lookup/Sales_System/Lookup_Orders"
xmlns:ora="http://schemas.oracle.com/xpath/extension"
xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/db/Order_Lookup/Sales_System/get_orders"
xmlns:ns2="http://www.example.org"
xmlns:ns3="http://xmlns.oracle.com/pcbpel/adapter/db/top/get_orders"
xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
xmlns:ns4="http://xmlns.oracle.com/pcbpel/adapter/db/Order_Lookup/Sales_System/get_items"
xmlns:ns5="http://xmlns.oracle.com/pcbpel/adapter/db/top/get_items"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<import namespace="http://xmlns.oracle.com/Order_Lookup/Sales_System/Lookup_Orders" location="Lookup_Orders.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
<!--
PARTNERLINKS
List of services participating in this BPEL process
-->
<partnerLinks>
<!--
The 'client' role represents the requester of this service. It is
used for callback. The location and correlation information associated
with the client role are automatically set using WS-Addressing.
-->
<partnerLink name="lookup_orders_client" partnerLinkType="client:Lookup_Orders" myRole="Lookup_OrdersProvider"/>
<partnerLink name="get_orders" partnerLinkType="ns1:get_orders_plt"
partnerRole="get_orders_role"/>
<partnerLink name="get_items" partnerLinkType="ns4:get_items_plt"
partnerRole="get_items_role"/>
</partnerLinks>
<!--
VARIABLES
List of messages and XML documents used within this BPEL process
-->
<variables>
<!-- Reference to the message passed as input during initiation -->
<variable name="inputVariable" messageType="client:Lookup_OrdersRequestMessage"/>
<!-- Reference to the message that will be returned to the requester-->
<variable name="outputVariable" messageType="client:Lookup_OrdersResponseMessage"/>
<variable name="Invoke1_get_ordersSelect_InputVariable"
messageType="ns1:get_ordersSelect_inputParameters"/>
<variable name="Invoke1_get_ordersSelect_OutputVariable"
messageType="ns1:OrdersCollection_msg"/>
<variable name="Invoke2_get_itemsSelect_InputVariable"
messageType="ns4:get_itemsSelect_inputParameters"/>
<variable name="Invoke2_get_itemsSelect_OutputVariable"
messageType="ns4:ItemsCollection_msg"/>
<variable name="Output_Row" element="ns2:OrderCollection"/>
</variables>
<!--
ORCHESTRATION LOGIC
Set of activities coordinating the flow of messages across the
services integrated within this business process
-->
<sequence name="main">
<!-- Receive input from requestor. (Note: This maps to operation defined in Lookup_Orders.wsdl) -->
<receive name="receiveInput" partnerLink="lookup_orders_client" portType="client:Lookup_Orders" operation="process" variable="inputVariable" createInstance="yes"/>
<!-- Generate reply to synchronous request -->
<invoke name="Invoke1" bpelx:invokeAsDetail="no" partnerLink="get_orders"
portType="ns1:get_orders_ptt" operation="get_ordersSelect"
inputVariable="Invoke1_get_ordersSelect_InputVariable"
outputVariable="Invoke1_get_ordersSelect_OutputVariable"/>
<forEach parallel="no" counterName="ForEach1Counter" name="ForEach1">
<startCounterValue>1</startCounterValue>
<finalCounterValue>count($Invoke1_get_ordersSelect_OutputVariable.OrdersCollection/ns3:Orders)</finalCounterValue>
<scope name="Scope1">
<sequence name="Sequence1">
<assign name="Assign2">
<copy>
<from>$Invoke1_get_ordersSelect_OutputVariable.OrdersCollection/ns3:Orders[$ForEach1Counter]/ns3:itemId</from>
<to>$Invoke2_get_itemsSelect_InputVariable.get_itemsSelect_inputParameters/ns5:item_id</to>
</copy>
</assign>
<invoke name="Invoke2" bpelx:invokeAsDetail="no"
partnerLink="get_items" portType="ns4:get_items_ptt"
operation="get_itemsSelect"
inputVariable="Invoke2_get_itemsSelect_InputVariable"
outputVariable="Invoke2_get_itemsSelect_OutputVariable"/>
<assign name="Assign3">
<copy>
<from>$Invoke1_get_ordersSelect_OutputVariable.OrdersCollection/ns3:Orders[$ForEach1Counter]/ns3:orderId</from>
<to>$Output_Row/ns2:Order/ns2:Order_ID</to>
</copy>
<copy>
<from>$Invoke1_get_ordersSelect_OutputVariable.OrdersCollection/ns3:Orders[$ForEach1Counter]/ns3:itemId</from>
<to>$Output_Row/ns2:Order/ns2:Item_ID</to>
</copy>
<copy>
<from>$Invoke2_get_itemsSelect_OutputVariable.ItemsCollection/ns5:Items[1]/ns5:itemDesc</from>
<to>$Output_Row/ns2:Order/ns2:Item_Desc</to>
</copy>
</assign>
<assign name="Assign4">
<extensionAssignOperation>
<bpelx:append>
<bpelx:from>$Output_Row/ns2:Order</bpelx:from>
<bpelx:to>$outputVariable.payload</bpelx:to>
</bpelx:append>
</extensionAssignOperation>
</assign>
</sequence>
</scope>
</forEach>
<reply name="replyOutput" partnerLink="lookup_orders_client" portType="client:Lookup_Orders" operation="process" variable="outputVariable"/>
</sequence>
</process>
Maybe you are looking for
-
Hi Experts, I have a requirement to remove the stated Message Processor, when the incident / Service Desk ticket is being saved using a particular status (Eg: Sent to Level 1). Appreciate if someone can guide me how this can be done (whether using si
-
Every email in inbox opens when I enter mail
My boss uses Apple mail. Every time he clicks on mail to enter the program, EVERY email in his inbox opens (hundreds) all over the desktop. This never happened before, and we don't know what caused the problem. Is there a setting we're missing? He si
-
Lumia 925 blurry text while scrolling
Noticed that my lumia 925 has a blurry text while scrolling, specially when scrolling white text over black background or black text over white background... also noticed some blurry when scrolling tiles on the home screen, this blurry occurred aroun
-
Service Requests in E-Service - Change the status of a request
Hi All, We had setup a ICSS B2B web for return order management. We have a requirement that once the service request is created by the User "Customer service representative" he should be able to manually change the status of the request in the web su
-
I have only 1 ipad device, can I create 2 icloud accounts for the same ipad?
I have only 1 ipad device, can I create 2 icloud accounts for the same ipad?