Rename Constant outgrp attribute in OMBPlus
Does anyone know the OMBPlus syntax to RENAME an ATTRIBUTE of OUTGRP1 of a CONSTANT Operator?
Thank you,
Thank you for your reply. The syntax works for CONSTANTS as well. I have 420 mappings to update, so you helped me alot.
I previously tried various combinations, and was close, but not close enough. I was getting fustrated.
Similar Messages
-
OMBPLUS 10.1: how to relate OUTGRP attributes of JOINER to INGRP attributes
Hi,
In OMBPlus I'm adding attributes to ingroups of a JOINER operator. I want to connect the resulting outgroup attributes to the next operator. The name of the outgroup attribute can differ from that of the ingroup because ingroup attributes can have the same name, in which case OWB suffixes the outgroup attribute with '_n'.
How do I relate the outgroup attribute to the ingroup attribute in that case?
Regards, Jaap.Hi,
The reaction of Oracle: in OWB 10.1 it is NOT possible to find the associated output group attribute of an input group attribute. It is possible in OWB 10.2.0.3 and higher (although the property used is not documented) as follows:
proc get_associated_input_group { mapName joinerName outGroupName outAttrName} {
set inputMatchingUoid [OMBRETRIEVE MAPPING '$mapName' OPERATOR '$joinerName' GROUP '$outGroupName' ATT
RIBUTE '$outAttrName' \
GET PROPERTIES (JOIN_INPUT_UOID)]
#puts "inputMatchingUoid = $inputMatchingUoid"
set inputGroupNames [OMBRETRIEVE MAPPING '$mapName' OPERATOR '$joinerName' GET INPUT GROUPS]
#puts "inputGroupNames = $inputGroupNames"
foreach group $inputGroupNames {
#puts "processing group $group"
set inputAttrs [OMBRETRIEVE MAPPING '$mapName' OPERATOR '$joinerName' GROUP '
$group' GET ATTRIBUTES]
foreach attr $inputAttrs {
#puts "processing attr $attr"
set outputMatchingUoid [OMBRETRIEVE MAPPING '$mapName' OPERATOR '$joinerName' GROUP '$group' ATTRIBUTE '$attr' \
GET PROPERTIES (JOIN_OUTPUT_UOID)]
if {$outputMatchingUoid == $inputMatchingUoid} {
return $group
return "";
proc get_associated_input_attr { mapName joinerName outGroupName outAttrName} {
set inputMatchingUoid [OMBRETRIEVE MAPPING '$mapName' OPERATOR '$joinerName' GROUP '$outGroupName' ATTRIBUTE '$outAttrName' \
GET PROPERTIES (JOIN_INPUT_UOID)]
#puts "inputMatchingUoid = $inputMatchingUoid"
set inputGroupNames [OMBRETRIEVE MAPPING '$mapName' OPERATOR '$joinerName' GET INPUT GROU
PS]
#puts "inputGroupNames = $inputGroupNames"
foreach group $inputGroupNames {
#puts "processing group $group"
set inputAttrs [OMBRETRIEVE MAPPING '$mapName' OPERATOR '$joinerName' GROUP '$group' GET ATTRIBUTES]
foreach attr $inputAttrs {
#puts "processing attr $attr"
set outputMatchingUoid [OMBRETRIEVE MAPPING '$mapName' OPERATOR '$joinerName' GROUP '$group' ATTRIBUTE '$attr' \
GET PROPERTIES (JOIN_OUTPUT_UOID)]
if {$outputMatchingUoid == $inputMatchingUoid} {
return "$group ATTRIBUTE $attr"
return "";
} -
OIM 11g - Renaming an UDF attribute
Hi,
May I know how i can rename a custom defined user attribute in OIM 11g?.Thanks.878153 wrote:
Thanks BB.My requirement is to renamed a UDF which I have created.For example,I created a UDF with labee "Mobile" and want to change it to "Telephone" .May I know how I can achieve this?.If you want to define the label for your attribute in GUI, then use resource bundles to define the label for your label:
$OIM_ORACLE_HOME//server/customResources/customResources_<your language>.properties
Add the global.udf. prefix to the name of the attribute.
Otherwise, you will have to create a new attribute and delete the old one. -
Rename the marketing attributes
Hi,
In our system, we have several marketing attributes and sets which are already assigned to BPs. But as to make the consistent between all the attributes and sets, we are planning to do the naming conventions. We have thought about a solution to do that but which is very time consuming and tiresome. We have thought of creating a target group for each value and delete the assignments via Marketing tools and again assign the new value with the new name. But as there are more than 25 sets with each 10 attributes and 10-15 values in that, its going to be a difficult and time consuming. So anyone could please advise me if there is any other solution to do this?
Kind Regards
SnehaHi Sneha,
AUSP - BP GUID, Attribute Name ,Value ,Object ID
CABNT - Characteristic Descriptions
KLAH - Attribute Set Name & ID(CLINT)
CABN - Attribute ID , Attribute name
CAWN Attribute name, possible values
Try to change in the Table with the help of ABAP guy
Award Points if helpful
Regards
Manohar -
Renaming of Navigational Attribute
We have a navigational attribute (0CREDITOR_ZMININD) that combines 0CREDITOR (VENDOR) with a customer-defined InfoObject for a minority level indicator (ZMININD). That attribute appears as "0CREDITOR_ZMININD" within the Query Designer. We are aware that the description can be changed (i.e., "Minority Level Indicator") within the Query Designer on a report-by-report basis. However, what we have not been able to determine is if it is possible to change the name outside of the Query Designer, so that it will always show up as something more user friendly (i.e., ZMININD) to the report designer.
Thanks in advance for your help.You can change the description of the Navigational Attribute on the Attributes page the characteristic 0CREDITOR. In the detail view, you can define Description and short text for each Navigational attribute.
Hope this helps.... -
Static const int attributes and template functions
The following does not link with CC on Solaris9. From what I can glean from the standards committee's notes it looks like it should and it compiles and links fine with g++. If I use a cast in the function call: ("foo((int)B::X)") then it links. If I move the static initialization out of the class definition then it works as well. Should we expect this to work or not?
#include <iostream>
class B
public:
static const int X = 42;
template< typename T > void foo( const T& t ) { std::cout << t << std::endl;}
int main()
foo(B::X);
}The C++ rule (C++ Standard, section 9.4.2 paragraph 4) is that a static const data member of integral type can have an in-class initializer, and the value can be used in integral constant expressions. But if the data member is used, it must be defined outside the class without an initializer. If gcc allows the code, it is by accident. Some other compilers (apart from Sun C++) do not.
Add the line
const int B::X;
somewhere at global scope (or at namespace scope if B is in a namespace) after the declaration of class B. But you can't put this definition in a header file. The entire program must have exactly one definition of the static member. -
Bug: unable to rename entity attribute (jdev903)
Hi,
I have an entity and a view on it.
One of the entity attributes has the wrong name, so I tried to rename it, but jdev gave me a warning that it couldn't rename the attribute because the view is dependent on it. Sounds fair (although I wish it would rename the attribute in the view along with it, (refactoring)).
Then I removed the attribute from the view, and try to rename the entity attribute again. It still can't rename it! I've verified twice to see if the attribute was actually removed from the view, which it was, so this is definitely a bug.
Greetings,
IvoIvo want's to rename the attribute in the entity object without first removing the attribute from the view object. That this isn't possible right now probably isn't a bug, because in your scenario you keep that in mind, so you manually first remove the attribute from the view object. But it would be nice if JDeveloper automatically renames the attribute in the view object too (instead of "complaining" about the dependency). And if you for example remove an attribute from an entity and a view object depends on it, it will ask you to remove the attribute from the view object(s) too etc.
-
Error accessing constnt public attribute of a class in an overwrite method.
Hi Gurus,
I am facing an error while accessing a constant public attribute while using it in the overwrite-exit of a methods.
The constant which is declared as public in the attribute section of the class is not available in the overwrite-exit of the method.
Please suggest me how to access the public attributes in the overwtire exits of the methods.
Thanks.Hi Ramneek,
Let me explain you the entire scenario:
Actually we are trying to ehance the SAP standard class : CL_FITV_POWL_FEEDER_TRIPS in ECC 6.0 EHP 5 .
We tried to create and overwrite-exit of the method "IF_POWL_FEEDER~GET_ACTIONS".
Overwrite-exit of a method is just like a method which will be called instead of the standard method : IF_POWL_FEEDER~GET_ACTIONS.
But the problem which we are facing here is that the Attributes which are defined in the class CL_FITV_POWL_FEEDER_TRIPS, are getting accessed from the overwrite-exit method.
Becuase of this we are not able to implement our custom logic. -
Xmlns attribute in 8.1.7
I am trying to process an XML file with the Oracle 8.1.7 PL/SQL XDK. I'm using Steve's helper programs from the XML book. The problem is that the document in question uses XML Schema. My script chokes whenever I attempt anything with this file. After a lot of investigation I have established that it's the xmlns attibute that it doesn't like (see testcase below).
Given that I can't upgrade to 9i just yet is there anything I can do to get this code working?
Cheers In Advance, APC
This doesn't can't find my attribute...
SQL> DECLARE
2 xdoc xmldom.DOMDocument;
3 l_file varchar2(32000) := '<MYROOT xmlnsBOB="http://www.somewhere.co.uk"> '
4 || ' <MYTAG>stuff</MYTAG> '
5 || '</MYROOT>';
6 lv_file_ref varchar2(240);
7 parser xmlparser.Parser;
8 BEGIN
9 parser := xmlparser.newParser;
10 xmlparser.setValidationMode(parser, FALSE);
11 xmlparser.parseBuffer(parser,l_file);
12 xdoc := xmlparser.getDocument(parser);
13 xmlparser.freeParser(parser);
14 lv_file_ref := xpath.valueOf(xdoc, '/MYROOT/MYTAG');
15 dbms_output.put_line('!'||lv_file_ref||'!');
16* END;
PL/SQL procedure successfully completed.
but runs okay if I rename the xmlns attribute...
SQL> DECLARE
2 xdoc xmldom.DOMDocument;
3 l_file varchar2(32000) := '<MYROOT xmlnsBOB="http://www.somewhere.co.uk"> '
4 || ' <MYTAG>stuff</MYTAG> '
5 || '</MYROOT>';
6 lv_file_ref varchar2(240);
7 parser xmlparser.Parser;
8 BEGIN
9 parser := xmlparser.newParser;
10 xmlparser.setValidationMode(parser, FALSE);
11 xmlparser.parseBuffer(parser,l_file);
12 xdoc := xmlparser.getDocument(parser);
13 xmlparser.freeParser(parser);
14 lv_file_ref := xpath.valueOf(xdoc, '/MYROOT/MYTAG');
15 dbms_output.put_line('!'||lv_file_ref||'!');
16* END;
!stuff!
PL/SQL procedure successfully completed.
SQL>I am trying to process an XML file with the Oracle 8.1.7 PL/SQL XDK. I'm using Steve's helper programs from the XML book. The problem is that the document in question uses XML Schema. My script chokes whenever I attempt anything with this file. After a lot of investigation I have established that it's the xmlns attibute that it doesn't like (see testcase below).
Given that I can't upgrade to 9i just yet is there anything I can do to get this code working?
Cheers In Advance, APC
This doesn't can't find my attribute...
SQL> DECLARE
2 xdoc xmldom.DOMDocument;
3 l_file varchar2(32000) := '<MYROOT xmlnsBOB="http://www.somewhere.co.uk"> '
4 || ' <MYTAG>stuff</MYTAG> '
5 || '</MYROOT>';
6 lv_file_ref varchar2(240);
7 parser xmlparser.Parser;
8 BEGIN
9 parser := xmlparser.newParser;
10 xmlparser.setValidationMode(parser, FALSE);
11 xmlparser.parseBuffer(parser,l_file);
12 xdoc := xmlparser.getDocument(parser);
13 xmlparser.freeParser(parser);
14 lv_file_ref := xpath.valueOf(xdoc, '/MYROOT/MYTAG');
15 dbms_output.put_line('!'||lv_file_ref||'!');
16* END;
PL/SQL procedure successfully completed.
but runs okay if I rename the xmlns attribute...
SQL> DECLARE
2 xdoc xmldom.DOMDocument;
3 l_file varchar2(32000) := '<MYROOT xmlnsBOB="http://www.somewhere.co.uk"> '
4 || ' <MYTAG>stuff</MYTAG> '
5 || '</MYROOT>';
6 lv_file_ref varchar2(240);
7 parser xmlparser.Parser;
8 BEGIN
9 parser := xmlparser.newParser;
10 xmlparser.setValidationMode(parser, FALSE);
11 xmlparser.parseBuffer(parser,l_file);
12 xdoc := xmlparser.getDocument(parser);
13 xmlparser.freeParser(parser);
14 lv_file_ref := xpath.valueOf(xdoc, '/MYROOT/MYTAG');
15 dbms_output.put_line('!'||lv_file_ref||'!');
16* END;
!stuff!
PL/SQL procedure successfully completed.
SQL> -
Hi
we are migrating from 5.1 to 5.2 SP4. In this process of migration we would like to eliminate some attributes and as well as to rename some attributes.
can anyone help me how can I achieve this of elimination and renaming to new attribute names.
Regards,
SriI can change my schema matches with my new requirement, but how can I make my new schema allowing the existing userstore with lot of old attributes.
If I directly imports the existing userstore into newly created schema, I am sure it will through object class violation
Regards,
Sri -
Method, parameters and attributes
Dear SAP friends!
Could anybody explain me how to find possible values of a parameter?
Here is an example:
CALL METHOD o_picture->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>display_fit_center.
Parameter "display_mode" has 4 possible values. The parameter values could be found in Attributes Tab.
But how I can identify that these 4 values are related to "display_mode" parameter?
Let's say I want to use method "set_display_mode" of class "cl_gui_picture".
I go to SE84 and display the class. Then I find the method I want to use and click "parameters". Then I see the parameter "display_mode".
I know that possible values of the parameter could be found in Attributes Tab. But there so many of them...
How do I know which is which? Clicking on "display_mode" doesn't give any information and there is no documentation available in English...
Thanks,
TatyanaYes, this is a little bit tricky at times. But the class, method, attributes are designed to be intuitive, meaning that the wording of the methods and and attributes are described in such a way that it is easy to recoginize what contansts can be used to pass to method calls. Lets take the class CL_GUI_DOCKING_CONTAINER for example. Lets look at the CONSTRUCTOR method and its parameter SIDE. You will see that this parameter is of TYPE I and that it is actually using on of the constants as its default, DOCK_AT_LEFT. So if you go to the attributes tab and look for DOCK_AT_LEFT, you will find other contants that are available to pass to this parameter.
If you are looking for a hard list of values(or constants in attributes tabs) which can be passed to any given parameter of any given method, I do not believe that this functionality exists.
REgards,
Rich Heilman
Regards,
Rich Heilman -
Error while loading XML files into scott user
Hi All,
I'm new to xml files. I need to load xml files into database through OWB.
I have xml file in my local machine & am trying to load into table PO of Scott. Scott is registered as repository user.
Followed same steps as specified in userguide.
But, when executing the procedure ( in two ways one as just table name, and other as user.table name) it is showing the below error:
Procedure is:(1)--with username.tablename
begin
wb_xml_load(
'<OWBXMLRuntime>'||
'<XMLSource>'||
'<file>&&SAMPLES_DIR.sample1.xml</file>'||
'</XMLSource>'||
'<targets>'||
'<target dateFormat="yyyy.MM.dd">scott.PO</target>'||
'</targets>'||
'</OWBXMLRuntime>'
end;
ERROR at line 1:
ORA-20006: Error occurred while truncating target database object SCOTT.PO.
Base exception: ORA-01031: insufficient privileges
ORA-06512: at "OWBSYS.WB_XML_LOAD_F", line 12
ORA-06512: at "OWBSYS.WB_XML_LOAD", line 4
ORA-06512: at "SCOTT.SAMPLE1", line 3
ORA-06512: at line 1
Procedure is:(2) with out username
begin
wb_xml_load(
'<OWBXMLRuntime>'||
'<XMLSource>'||
'<file>&&SAMPLES_DIR.sample1.xml</file>'||
'</XMLSource>'||
'<targets>'||
'<target dateFormat="yyyy.MM.dd">PO</target>'||
'</targets>'||
'</OWBXMLRuntime>'
end;
ERROR at line 1:
ORA-20006: Error occurred while truncating target database object PO.
Base exception: ORA-00942: table or view does not exist
ORA-06512: at "OWBSYS.WB_XML_LOAD_F", line 12
ORA-06512: at "OWBSYS.WB_XML_LOAD", line 4
ORA-06512: at line 2
xml file:
<ROWSET>
<ROW>
<ID>100</ID>
<ORDER_DATE>2000.12.20</ORDER_DATE>
<SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
<SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
<SHIPTO_CITY>Redwood City</SHIPTO_CITY>
<SHIPTO_STATE>CA</SHIPTO_STATE>
<SHIPTO_ZIP>94065</SHIPTO_ZIP>
</ROW>
</ROWSET>
Note: Everything works fine if I create PO table in OWBSYS user and execute the procedurein OWBSYS user. OWBSYS.PO table will be loaded.
What privileges are missing, what shouldI do if I want to execute the procedure from scott user and load the table of scott.
Thanks in advance for the help.
Regards,
JoshnaHi Joshna,
Please follow below steps to load xml file to oracle database.
1.First connect to owb (Design Center) through your repository owner user (ex : REP_OWNER).
2. Import WB_XML_LOAD procedure . and exit to repository owner.
3. connect to owb design center through your repository user (ex : REP_USER)
Create New mapping and drag one Constant Operator and create one attribute, paste / edit following code
'<OWBXMLRuntime>'||
'<XMLSource>'||
'<file>E:\SOURCE\emp.xml</file>'||
'</XMLSource>'||
'<targets>'||
'<target truncateFirst = "FALSE" dateFormat="yyyy.MM.dd">rep_user.emp</target>'||
'</targets>'||
'</OWBXMLRuntime>'
4. Drag pre mapping operator and select WB_XML_LOAD procedure
5. Connect Constant Operator attribute to pre mapping operator.
6. Drag two dummy tables and connect source to target. (ex : drag t1 (table) tab two times and connect.
7. Validate and deploy the mapping.
8. grant necessary grant command to rep_owner user to rep_user user.
(Note : target truncateFirst = "FALSE" by default truncate the table. So you have to give grant privileges
To rep_user , select ,insert, delete privileges.
9. Execute the mapping , and check EMP table. (Note : before loading EMP table delete all records ).
10 . If you want more description please go through the below link
http://download.oracle.com/docs/html/A95931_01/apf.htm
Regards
Venkat -
Creation of Stand Alone prompt in OLAP universe
Hi,
I am creating a webi report from universe build from Bex query.
I have to catch a user response so i am creating a stand alone prompt in the universe but when i am parsing it, it's giving error.
<FILTER KEY="[Level Object definition]"><CONDITION OPERATORCONDITION="Equal"><CONSTANT Level Attribute="@Prompt('Enter A Value','N',,,)"></CONSTANT></CONDITION></FILTER>
The code is as above.
Since this user response function doesn't refer to any dimension/key figure, hav to jus get the values from user as 1,2,3
Pls Help.
Regards,
AkhilHi,
the Key value is not correct in your syntax - you would have to have some technical name there.
take a look at some examples:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a45246-ce76-2b10-e688-f5c8206203eb
ingo -
Jquery - Detect Page / Item Change
Hi Guys,
I am aware of the skillbuilders save before exit plugin but I was wondering if there is a stripped down version, maybe some Jquery to identify if a Page has had any changes made.
For example if an item on a page is accessed / changed in anyway then an hidden item is set with a flag?
Thanks AllNo need to reinvent really. If you know about the Skillbuilders plugin, you probably have tried it out already. Their plugins come with good documentation and the source files.
In the documentation the "changeDetected" procedure is explained:
The changeDetected method can be used to check elements (not set to ignore) to see if they have changed since the page loaded. It can be called as follows (returns Boolean):
$(document).apex_save_before_exit('changeDetected');
Knowing this, you can take a look at the source javascript (apex_save_before_exit.js). The changeDetected function does exactly what you want and would need very minimal adjusting.
Start with removing
.not(uiw.options.ignoreChangeSelector)The code also doesn't do anything wild: everything used is standard, such as the defaultValue attribute on text input items.
Only shuttles are a small exception as they have no standard defaults that can be checked against, and that is why in the "_create" of the plugin these values are stored in a data attribute on the shuttle:
$('form#wwvFlowForm fieldset.shuttle')
.not(uiw.options.ignoreChangeSelector)
.each(function() {
var loadVal = $v(this.id);
$(this).data('apex-sbe-load-val', loadVal);
});You can leave it like that, or rename the data attribute (and change it in the changeDetected attribute).
If you want to check single items, the function shows you everything you need to check any type of item. -
Layout set Z_TESTSCRIPT
Description Test SAP script
Standard attributes
First page FIRST
Default paragraph P1
Tab-stop 1.00 CH
Page format DINA4
Orientation Landscape
Lines/inch 6.00
Characters/inch 10.00
Font attributes
Font family COURIER
Font size 12.0 Point
Bold No
Italic No
Underlined No
Characters Attributes
B Character String Bold
Standard attributes
Marker No
Font attributes
Bold Yes
Paragraphs Attributes
P1 Default Paragraph
Standard attributes
Line spacing 1.00 LN
Left margin 1.00 CM
Alignment Left-aligned
Font attributes
Font family TIMES
Font size 12.0 Point
P2 Header Paragraph
Standard attributes
Line spacing 1.00 LN
Left margin 4.50 CM
Alignment Left-aligned
Font attributes
Font family TIMES
Font size 18.0 Point
Bold Yes
P3 Undelined paragraph
Standard attributes
Line spacing 1.00 LN
Alignment Left-aligned
Font attributes
Font family TIMES
Font size 12.0 Point
Underlined Yes
Windows Attributes
MAIN Main window
Window type MAIN
HEADER Main window
Window type CONSTANT
FOOTER Main window
Window type CONSTANT
Pages Attributes
FIRST First Page
Standard attributes
Next page FIRST
Page counter
Mode START
Numbering type Arabic numerals
Page window
HEADER Left margin 00.00 CM
Upper margin 00.00 CM
Window width 20.00 CM
Window height 04.00 CM
MAIN Left margin 00.00 CM
Upper margin 05.00 CM
Window width 20.00 CM
Window height 20.0 CM
FOOTER Left margin 00.00 CM
Upper margin 25.00 CM
Window width 20.00 CM
Window height 04.00 CM
Text elements for following windows:
HEADER
Element HEADER
/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
P2 ,,<B>TEST PURCHASE ORDER</>
MAIN
Element MAIN
P1 <B>Customer/Supplier:</>,,&KNA1-NAME1&
P1 <B>PO No:</>,,&EKPO-EBELN&
P1 <B>Part No:</>,,&MAKT-MATNR&
P1 <B>Description:</>,,&MAKT-MAKTX&
P1 <B>Quantity:,,</>&EKPO-MENGE&
P1 <B>Sign:</>&uline(81)&
P1 <B>Date:</>&EKKO-AEDAT&
FOOTER
Element FOOTER
/: POSITION XORIGIN 2 CM YORIGIN '-0.5 CM'
/: BOX XPOS 1 CM YPOS 1 CM WIDTH 18 CM HEIGHT 1 CM FRAME 10 TW INTENSITY 10
P2 ,,<B>PLEASE SIGN THE PO BEFORE DISPATCH</>
REPORT ZPSAPSCRIPT.
TABLES : EKKO,
EKPO,
KNA1,
USR01,
MARA,
MAKT.
DATA : BEGIN OF ZOPTION.
INCLUDE STRUCTURE ITCPO.
DATA : END OF ZOPTION.
PARAMETERS: P_EBELN LIKE EKKO-EBELN,
P_EBELP LIKE EKPO-EBELP.
CLEAR EKPO.
SELECT SINGLE * FROM EKPO
WHERE EBELN = P_EBELN AND
EBELP = P_EBELP.
CLEAR KNA1.
SELECT SINGLE NAME1 FROM KNA1
INTO KNA1-NAME1
WHERE KUNNR = EKPO-KUNNR.
CLEAR MAKT.
SELECT SINGLE MAKTX FROM MAKT
INTO MAKT-MAKTX
WHERE MATNR = EKPO-MATNR AND
SPRAS = SY-LANGU.
CLEAR USR01.
SELECT SINGLE * FROM USR01 WHERE BNAME = SY-UNAME.
ZOPTION-TDDEST = USR01-SPLD. "Output device (printer)
ZOPTION-TDIMMED = 'X'. "Print immediately
ZOPTION-TDDELETE = 'X'. "Delete after printing
ZOPTION-TDPROGRAM = 'ZPQRPRNT'. "Program Name
CALL FUNCTION 'OPEN_FORM'
EXPORTING
APPLICATION = 'TX'
* ARCHIVE_INDEX = ' '
* ARCHIVE_PARAMS = ' '
DEVICE = 'PRINTER'
DIALOG = ' '
FORM = 'Z_TESTSCRIPT'
LANGUAGE = SY-LANGU
OPTIONS = ZOPTION
IMPORTING
LANGUAGE = SY-LANGU
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'HEADER'
* FUNCTION = 'SET'
* TYPE = 'BODY'
WINDOW = 'HEADER'
EXCEPTIONS
ELEMENT = 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'MAIN'
* FUNCTION = 'SET'
* TYPE = 'BODY'
WINDOW = 'MAIN'
EXCEPTIONS
ELEMENT = 1.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'FOOTER'
* FUNCTION = 'SET'
* TYPE = 'BODY'
WINDOW = 'FOOTER'
EXCEPTIONS
ELEMENT = 1.
CALL FUNCTION 'CLOSE_FORM'
EXCEPTIONS
UNOPENED = 1
OTHERS = 2.
My previous posts are also same.Still I didnt get any solution.I tried debugging the form too.It says unknown symbol error in that main window for all symbols(I checked using check->texts).Why it says unknown symbol.Values are captured in my abap program but not in script.I tried giving /: DEFINE &KNA1-NAME1
/:DEFINE &EKPO-EBELN& to all symbols.When I checked,that unknown symbol error doesnt come as I defined them,but values are not printed.Iam strucked.Please help me.
ThanksI have tried to regenearate the problem but in my system it is not giving me any error.
May be you are facing problem because of the data.
My Observation is falles:
1. You have defined the parameters without the "OBLIGATORY". As you are using these criteira as main selection and if you don't provide any values in the field it will not facth any data. So, make it mandatory
PARAMETERS: P_EBELN LIKE EKKO-EBELN OBLIGATORY, " <
P_EBELP LIKE EKPO-EBELP OBLIGATORY. " <<
2. Use START-OF-SELECTION before starting the selection and check for the successful data retrival.
START-OF-SELECTION.
CLEAR EKPO.
SELECT SINGLE * FROM EKPO
WHERE EBELN = P_EBELN AND
EBELP = P_EBELP.
IF SY-DBCNT IS INITIAL.
MESSAGE S398(00) WITH 'Do data is selected..!'
LEAVE LIST-PROCESSING.
ENDIF.
Hope it helps.
Regards,
Naimesh Patel
Maybe you are looking for
-
Any ideas on how to uninstal the setup for PSE 9?
I wanted to load PSE9 onto my iMac4 Intel Core Duo, however I would need to update to 10.5 to complete the install. I am unable to do this upgrade right now and i want to completely remove all PSE files. It took a LONG time for the set up to load ont
-
Can i charge my iphone in europe using only an adapter
can i charge my iphone in europe using only an adapter
-
Invoice creation problem in SRM 5.0
Hi, When I am trying to create invoice in SRM system fora particular PO. It gives me error "no item found for PO number ....". Therfoe I am not able to generate any invoice in the system. ECC is 6.0 with unicode and SRM is 5.0 nonunicode system. Pl
-
Java and swap space in Solaris 8
Hi, I've set weblogic java to run on Xmx1534m with swap space 2Gb. It seems like we always encounter out-of-space during jsp compilations. This happens whenever the system crunches on available swap space. Any ideas what to adjust for, such
-
Ink for HP Photosmart Plus model B209a
I purchased this all-in-one after Thanksgiving. Does it just come with a sample ink supply? I'm wondering because all I have printed on it was our Christmas letter and I made about 70 copies, then it showed that the ink was low. I ordered the repl