Can we print boolean variable in dbms_output_put_line ?
Hi
Can any one please tell me Can we print boolean variable in dbms_output_put_line ?
Is it possible or not ?
Thanks,
Sanjeev.
user13483989 wrote:
Hi
Can any one please tell me Can we print boolean variable in dbms_output_put_line ?
Is it possible or not ?
Thanks,
Sanjeev.The answer is in the package definition (or the documentation) if you just look:
SQL> desc dbms_output
PROCEDURE DISABLE
PROCEDURE ENABLE
Argument Name Type In/Out Default?
BUFFER_SIZE NUMBER(38) IN DEFAULT
PROCEDURE GET_LINE
Argument Name Type In/Out Default?
LINE VARCHAR2 OUT
STATUS NUMBER(38) OUT
PROCEDURE GET_LINES
Argument Name Type In/Out Default?
LINES TABLE OF VARCHAR2(32767) OUT
NUMLINES NUMBER(38) IN/OUT
PROCEDURE GET_LINES
Argument Name Type In/Out Default?
LINES DBMSOUTPUT_LINESARRAY OUT
NUMLINES NUMBER(38) IN/OUT
PROCEDURE NEW_LINE
PROCEDURE PUT
Argument Name Type In/Out Default?
A VARCHAR2 IN
PROCEDURE PUT_LINE
Argument Name Type In/Out Default?
A VARCHAR2 IN
SQL>PUT_LINE - argument type is VARCHAR2. Simples.
Similar Messages
-
How can i define a boolean variable with the condition if i got a specific text on a selected column?
Example:
my select results:
[id = 102] [Company = 'Microsoft']
If i got microsoft in 'Company' i want to my another table with the columnName "Microsoft" get "true".
Can you help me?That is called 2-table UPDATE.
Example:
http://www.sqlusa.com/bestpractices2005/updatewithcorrelatedsubquery/
Kalman Toth Database & OLAP Architect
Free T-SQL Scripts
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
How doi print Any variable at the end of page in ALV report?
Hi,
Anyone can tell me that How do i print Any variable at the end of page in ALV report?
Exmale: at the ende of alv report i want to print total no of employee who has taken house loan or education loan.Hi,
Go through these links
Thread in sdn regarding FOOTER IN ALV
[ALV FOOTER;
Wiki in sdn regarding HEADER AND FOOTER IN ALV
[https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP%20Objects%20-%20ALV%20Model%20-%20Using%20Header%20and%20Footer]
Header and Footer in ALV
[http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm]
Hope this helps.
Thank you,
Pavan. -
How can i print data in smartforms from ABAP program.
Dear gurus:
in my abap program i process require data, and saved in a internal table.
how can l print the data in smartforms.?
who can give me a code sample is better:)
reward all helpful advise.Try this....
1) Tcode --> SmartForms
2) Form name --> Z_SF_TEST Create
3) Under Global settings
a) Form Interface
Table Tab
ITAB LIKE EKPO
b) GLOBAL Definitions
WA_NETPR LIKE EKPO-NETPR
In smart forms if we want to display quantity and currency fields. We can't directly display currency field and quantity fields
For that we have to create an extra variable in global definitions
Ex: netpr FIELD of EKPO
CREATE program lines and specify WA_NETWR = itab-netpr.
4) RT CLick on main Window
CREATE --> TABLE
Click Table painter
DEFAULT %LTYPE will be Created
a) If you want more like Header footer etc add by rt click on %LTYPE1
Table (Tab)
%LTYPE Radio(SELECT) 5 CM 5 CM 6 CM
CLICK on DATA (Tab)
INTERNAL TABLE ITAB LIKE ITAB
5)RT click on table control and create --> program lines
General attribute (Tab)
INPUT PARAMETER OUTPUT PARAMETER
itab WA_NETPR
Code Area
WA_NETWR = ITAB-NETPR.
6) RT CLcick on table ctl and create 3 text to display the fields
a) % text1 +button(insert field)
FIELD name &itab-ebeln&
Output options (tab)
Check New line LINETYPE %Ltype1
check new cell
b) % text2
& itab-ebelp&
output options
check new cell
c) % text2
& wa_netpr&
output options
check new cell
<b>Report ac
Tables ekpo.
Data: itab1 like ekpo occurs 0 with header line.
select * into table itab1 from ekpo.
Call function module --> smart form function module and pass your internal table</b>
Regards,
SaiRam -
How can I print a pdf in the actual size with a page border?
How can I print a pdf in the actual size with a page border? (2 pages per sheet preferred)
I usually print pdfs of books at a copy shop and they turn out fine.
The problem comes when I try to print the same books at home.
I use Adobe Acrobat X with the same settings: "multiple pages per sheet" (2x1) and page border. But the pages are slightly shrunken when printed. I think this is because my printer can't print as closely to the margins. Still, two pages should be able to fit on one sheet in actual size. Are there any layout settings that I can play with to find a better fit, besides portrait and landscape?
If I select page scaling "none," I'm able to print the pdf in actual size, one page per sheet. But there's no option to add a page border.I have a test with some questions (multiple choice, FIB, matching, etc). I have just one button to submit all the answers, and after submiting the student can see his score and review the test to know where he failed. He can't answer again. However, he can change the answer multiple times before submiting.
"if i turn on success/failure captions the student will see them while answering" - before submitting
"if i turn them off he wont know what's the right answer" - after submitting
My results page is the default. I didn't use any variable. When i go to the results page after reviewing the test all the entry boxes are "wrong". -
Use of boolean variables in BPEL switch statements
I have a workflow with a single boolean input parameter:
<element name="input" type="boolean"/>
I wish to use a switch statement within the workflow, based on the value of that boolean parameter.
When I use the following XPath expression:
bpws:getVariableData("input","payload","/tns:BooleanRequest/tns:input")
I get the correct functionality, although I get the following BPEL compiler warning:
" [bpelc] [Warning ORABPEL-10078]: return value of this expression may not be a boolean
[bpelc] [Description]: in line 35 of "C:\eclipse\workspace\Boolean\Boolean.bpel", xpath expression "bpws:getVariableData("input","payload","/tns:BooleanRequest/tns:input")" used in <switch> may not return boolean type value, the xpath engine would automatically try to convert the return value to boolean..
[bpelc] [Potential fix]: Please use one of the built-in boolean functions from xpath http://www.w3.org/TR/xpath#section-Boolean-Functions to convert the return value to boolean.."
However, the boolean functions referenced do not appear to be relevant to a variable which is already of a boolean type. If I attempt to use the boolean() function in my XPath expression, I get rid of the compiler error, but the workflow now does not work as required.
How can I get rid of the compiler warning and still get the required functionality, and/or am I doing the wrong thing?
I am currently running on JBoss, with BPEL release 2.1.2 [build #1226].
Thanks for any help or ideas.Hi Marlon,
Thanks for that - I guess we have to accept the vagaries of XPath and the absence of type-checking for variables.
I hadn't fully understood until I started investigating that I can assign ANY string to variable of type xsd:boolean, which has been the cause of some of the confusion for me - whether that value is then considered true or false depends on how you write your test condition.
I tried with your condition, and it didn't seem to work (evaluated to true if the variable data was the string "true()", but otherwise it seemed to always evaluate to false.
I also tried the following:
condition="bpws:getVariableData('booleanVariable')=true()"
but that evaluates to true for any string of length > 0.
The only one I can get to consistently work is:
condition="bpws:getVariableData('booleanVariable')=string(true())"
although that means that variable data of "TRUE" will evaluate to false (may well be the correct behaviour, depending on how you're setting the boolean variable in the first place). -
Can't print correctly by using Adobe Reader 9.1.2
The following code in OCX is being used in my web application to print PDF directly with Adobe Reader 5.1, and it works fine!
When Adobe Reader is upgraded to 9.1.2, it no longer works. Printouts often cannot be printed correctly. However, when I add the code in red, the printouts can be printed correctly again.
Anyway, I don't want Open and Close Adobe Reader during direct printing.
Anyone knows why FilePrintSilent doesn't work? and how to solve it?
Thanks in advance!
William
''''''''''' Use ddeml to communicate with acrobat reader '''''''''''
On Error GoTo ErrPrinting1
Dim a
Set a = CreateObject("AcroExch.Document")
Dim lRet As Boolean
Dim sValue As String
sValueOpen = "[DocOpen(" & localFileName & ")]"
sValuePrint = "[FilePrintSilent(" & localFileName & ")]"
sValueClose = "[DocClose(" & localFileName & ")]"
DDE_Initialize
DDE_CreateStringHandles "acroview", "control", ""
' Open the conversation.
If (g_hDDEConv = 0) Then
g_hDDEConv = DDE_Connect
End If
If g_hDDEConv Then
' Perform the transaction.
lRet = DdeClientTransaction(sValueOpen, Len(sValueOpen), g_hDDEConv, 0, 0, XTYP_EXECUTE, 5000, 0)
lRet = DdeClientTransaction(sValuePrint, Len(sValuePrint), g_hDDEConv, 0, 0, XTYP_EXECUTE, 5000, 0)
Sleep 800
lRet = DdeClientTransaction(sValueClose, Len(sValueClose), g_hDDEConv, 0, 0, XTYP_EXECUTE, 5000, 0)
If (lRet) Then
Debug.Print "DDE Execute Success."
Else
Debug.Print "DDE Execute Failure."
End If
Else
Debug.Print "DDE Connect Failure"
printToPrinter = "DDE Connect Failure"
Exit Function
End If
' Release the memory.
DDE_FreeStringHandles
DDE_Uninitialize
Set a = Nothing
''''''''''' end '''''''''''We have PDF documents stored on server-side, the ActiveX control and Adobe Reader are installed on client-side.
When users open our web page, click our "Print weekly report directly" button, the ActiveX control on client will be called, and perform the above coding. It tries to download the PDF document from server to client, and pass it to the printer on client silently by using FilePrintSilent function.
The report can be printed, but not correct. It involves some unexpected characters which should be English or Traditional Chinese originally, as shown in the attached picture.
Thanks in advance!
William -
How can I get the variable with the value from Thread's run method
We want to access a variable from the run method of a Thread externally in a class or in a method. Even though I make the variable as public /public static, I could get the value till the end of the run method only. After that scope of the variable gets lost resulting to null value in the called method/class..
How can I get the variable with the value?
This is sample code:
public class SampleSynchronisation
public static void main(String df[])
sampleThread sathr= new sampleThread();
sathr.start();
System.out.println("This is the value from the run method "+sathr.x);
/* I should get:
Inside the run method
But I get only:
Inside*/
class sampleThread extends Thread
public String x="Inside";
public void run()
x+="the run method";
NB: if i write the variable in to a file I am able to read it from external method. This I dont want to doYour main thread continues to run after the sathr thread is completed, consequently the output is done before the sathr thread has modified the string. You need to make the main thread pause, this will allow sathr time to run to the point where it will modify the string and then you can print it out. Another way would be to lock the object using a synchronized block to stop the main thread accessing the string until the sathr has finished with it.
-
Can't print more than 75 reports... Load report failed
Hi,
I have a problem: I can't print more than 75 reports without restarting my application.
I'm using VB, Visual Studio 2005 and Crystal Reports Developer XI Release 2.
It's a windows application.
In the following examples I'm exporting to pdf but the same hapens if I put it on a viewer.
I tried to do some tests to find out the problem. I don't have a solution yet
Test 1:
I made a cycle printing 100 times the same report. I used the code from an example that was in the BusinessObjects website and just put it into a cycle. At 75 I get the error "Load Report Failed"
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportClass.Load(String reportName, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.EnsureLoadReport()
Dim ExportFolder As String = Application.StartupPath + "\export"
If Not IO.Directory.Exists(ExportFolder) Then
IO.Directory.CreateDirectory(ExportFolder)
End If
For i As Integer = 1 To 100
Dim crReportDocument As ReportDocument
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
''The path/location where the exported file will be saved
Dim exportFilePath As String = ExportFolder + "\exported" & i & ".pdf"
''Create an instance of the Chart report
crReportDocument = New Chart()
''Set the options for saving the exported file to disk
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = exportFilePath
crReportDocument.ExportOptions.DestinationOptions = crDiskFileDestinationOptions
crReportDocument.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
crReportDocument.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
''Export the report
crReportDocument.Export()
Next
Test 2:
I try to insert a "crReportDocument.Dispose() after the Export. It takes more than 1 minute doing the dispose and lots of time processing the 2nd report (more than 2 minutes)
Dim ExportFolder As String = Application.StartupPath + "\export"
If Not IO.Directory.Exists(ExportFolder) Then
IO.Directory.CreateDirectory(ExportFolder)
End If
For i As Integer = 1 To 100
Dim crReportDocument As ReportDocument
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
''The path/location where the exported file will be saved
Dim exportFilePath As String = ExportFolder + "\exported" & i & ".pdf"
''Create an instance of the Chart report
crReportDocument = New Chart()
''Set the options for saving the exported file to disk
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = exportFilePath
crReportDocument.ExportOptions.DestinationOptions = crDiskFileDestinationOptions
crReportDocument.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
crReportDocument.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
''Export the report
crReportDocument.Export()
' Dispose
crReportDocument.Dispose()
Next
Test 3
Same as Test3 but with ReportDocument.Close() before the dispose.
Still doesn't work, Close takes too long, just like Dispose...
Test 4
I tried using a global variable with the ReportDocument.
Instead of creating new instances of the ReportDocument, I keep using the same.
It works fine if I use always the same report file, but if I try to print 2 different reports the 2nd returns the error "Load Report Failed" and takes too long loading before the error.
Well, I made some researches on internet and I foud this, but still doesn't work with me, because Dispose always takes too long...
http://www.arquitecturadesoftware.org/blogs/hugobatista/archive/2006/02/22/236.aspx
http://www.arquitecturadesoftware.org/blogs/hugobatista/archive/2006/05/23/328.aspx
http://www.arquitecturadesoftware.org/blogs/hugobatista/archive/2007/04/05/CrystalReportsMemoryLeakFixByJerryCote.aspx
Can anybody help?
Thanks
Isabel
Edited by: Isabel Cabral on Aug 12, 2008 8:12 PMAlready tried that, then I get another problem...
After exporting the first report, takes 1 or 2 minutes doing the Close and the Dispose, and after that it takes too long trying to load the next report (after 1 hour I give up!).
This is the code I'm using to do the tests:
'Create the export folder
Dim ExportFolder As String = Application.StartupPath + "\export"
If Not IO.Directory.Exists(ExportFolder) Then
IO.Directory.CreateDirectory(ExportFolder)
End If
For i As Integer = 1 To 100
Dim crReportDocument As ReportDocument
Dim crDiskFileDestinationOptions As DiskFileDestinationOptions
''The path/location where the exported file will be saved
Dim exportFilePath As String = ExportFolder + "\exported" & i & ".pdf"
''Create an instance of the Chart report
crReportDocument = New Chart()
''Set the options for saving the exported file to disk
crDiskFileDestinationOptions = New DiskFileDestinationOptions()
crDiskFileDestinationOptions.DiskFileName = exportFilePath
crReportDocument.ExportOptions.DestinationOptions = crDiskFileDestinationOptions
crReportDocument.ExportOptions.ExportDestinationType = ExportDestinationType.DiskFile
crReportDocument.ExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat
''Export the report
crReportDocument.Export()
'Close and dispose
crReportDocument.Close()
crReportDocument.Dispose()
Next
Thanks,
Isabel -
How can I pass a variable from Test Stand to CVI by reference
Hi!
I can't to pass numeric or boolean variable from Test Stand (for example: FileGlobals.StopFlag) into the step (CVI function).
Function prototype:
void __declspec(dllexport) __cdecl PC2_WaitWhileResponceAppear(tTestData *testData, tTestError *testError, int *iStopFlag).
When variable has bin changed I can't see this change from my function.
CVI 2010, Test Stand 2010
Can anybody help me?Hey Rombar,
It is certainly possible to pass variables by reference; for example, if you go to <TestStand Directory>/Examples/Demo/C and open the computer.seq file, you can see one of the example sequences that uses CVI modules. If you click on one of these steps, you'll see that some of the parameters, such as the error information, is passed with pointers. This is a pass by reference.
To help narrow this down, it'd be good for us to figure out a few things about how the code is run. First, if you go to Configure > Adapters, select the CVI adapter and choose Configure, you can see options for this adapter. Do you have it configured to run in an external instance of CVI or as an in-process call?
Also, if you're wanting to see a change made in TestStand in your external code, this makes me think that you're wanting to run the code and then continue to execute your TestStand sequence while the code runs. How did you configure this behavior? For example, are you calling this code as a separate sequence in a new thread, or are you using another method to run this code while the sequence continues to run?
Finally, if we could see a screenshot of how you're configuring the parameters on the TestStand step, that might be helpful as well.
Daniel E.
TestStand Product Support Engineer
National Instruments -
How can i print currency symbol in smart form?
how can i print currency symbol in smart form?
i want to print the currency symbol with grant total based on the vendor currency.
pls hepl............Hi,
think You can't print the symbols for currency like $ and Pound etc
see this doc if needed
A variable in SAPscript is called a symbol. There are the following types.
System symbol (e.g. the number of the current page)
Standard symbol (usable in any document)
Program symbol (value from the print program)
Text symbol (local variable)
The value of a symbol is text for using within SAPscript code and is represented by the symbol-name enclosed by ampersands. On seeing the tell-tale ampersands in SAPscript code, you sometimes need to figure out the symbol type.
goto any PAGEWINDOW's Text elements in Script (SE71)
from the Menu-> INSERT-> Symbols
you find all symbols here
System symbols
System symbols in a SAPscript form are comparable to system fields like SY-UZEIT in an ABAP program, and include these. The graphical editor offers three types of system symbol.
1. General system symbols
See the table TTSXY. PAGE is the most widely used. The list given in our BC460 training manuals is out of date.
2. SAPscript system symbols
See the dictionary structure SAPSCRIPT. SAPSCRIPT-FORMPAGES is the most widely used.
3. ABAP system symbols
For the ABAP system field SY-UNAME, say, the symbol is SYST-UNAME. http://SYST is the dictionary structure for ABAP system fields.
Sample code:
User: &SYST-UNAME&
Page &PAGE& of &SAPSCRIPT-FORMPAGES(C3)&
Standard symbols
Standard symbols are maintained centrally (in the table TTDTG via transaction SE75) for use in any document. Menu path:
Tools
Form Printout
Administration
Settings
Some standard symbols are SAP-standard and others are custom. Curiously, table TTDTG is cross-client although SAPscript forms are not.
The value of a standard symbol has to be defined for each language used. This gives a way to make a single SAPscript form multi-lingual.
We can take advantage to an extent of the central maintenance, though there is no guarantee that the available standard symbols will used in every appropriate context.
Standard symbols complicate searching a SAPscript form, since text like Charity registration 211581 may be hiding in a standard symbol.
Text symbols
A text symbol is declared and assigned to within the SAPscript code, and so obviously applies only to the current document. The command DEFINE is used, requiring /: in the tag column, as in the following examples.
/: DEFINE &COMP_NAME& = University of Warwick
/: DEFINE &WS_RATE& = &TAX_SUMM_C&
Reward points for useful Answers
Regards
Shiva Kumar -
How to set a boolean variable to be true each x amount of time
hello,
Any ideas of how to create a boolean variable in labview which will be true only let's say each 2 seconds ? the rest of the time it should be false
Regards
Charis
Solved!
Go to Solution.Charis,
what is the context of such a "variable"?
The question is very important as it is a common mistake to have "variables" in dataflow programming languages like LabVIEW.
That being said, you have to implement a loop with proper timing to toggle the boolean value. You have to look for good propagation methods to make this value available in other parts of your software.
If the software is a single loop, the implementation is easy. It requires a shift register and a state machine (which includes other states as well performing the actual task of the program).
If the software is more complex, propagation from your "toggle loop" can be done by an Action Engine or a notifier.
Also, you have to define how long the boolean should be true as you only stated how long it should be false (2 seconds)....
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Writing Boolean variables to MS SQL Server
I cannot figure this out.
In the script I'm working on, a boolean variable can be dynamic either True / False ,etc
I cannot get the syntex correct to write this variable to a "binary" datatype column in SQL Server.
Column name in database is Binary
I have tried :
UPDATE da-database
SET Binary=@bStatus
WHERE First=400
da-databaseTEST
SET Binary=&bStatus
WHERE First=400
da-databaseTEST
SET Binary=bStatus
WHERE First=400
But if I use
da-databaseTEST
SET Binary=1
WHERE First=400
It sets the field to true i.e, Works correctly. Just get get it going with a variable.it is UCCX and
I'm having issues writing to a database doing any variable substitution.
I gave up on the boolean and decided to use just strings but hitting Null.Pointer Exceptions even though (IMHO) things are correct.
Is there a particular varaible type that I should defining in SQL that works "best" with the java beans and IPCC? -
Dbx: Can't evaluate local variables in optimized functions
I turned on the optimization for the whole product. Now I found that I can not print the local variables declared in side the main funciton or inside the function locals.
eg.
int factorial (int n)
int factorial = 1;
while (n > 1)
factorial *= n--;
return factorial;
When I tried to print n or factorial, I would not able to do so...
Is there any way can I get the local variables printed?
Is there any compiler options to overcome this problem and printing the local variables...
I know this is an difficult question becuase the locals go to Register instead of memory. By reverting it back to memory, I may loose the efficiency I gained with this optimizations.
options : -fast -xtarget=ultra3 -xarch=v8plusa -g0
Please let me know....
#include <iostream>
#include <string>
#include <unistd.h>
#include <stdio.h>
using namespace std;
int main(int argc, char **argv)
FILE *fp=freopen("myfile.txt","w",stdout);
int bytes_read;
char buffer[10000];
std::cout<<"##This should be 0 15238.0.172435 written in to the 1 file with out any HICK-UPs"<<endl;
FILE *myfp=fopen("myfile.txt","r");
cerr<<"This goes to std error file"<<endl;
fseek(myfp, 0, SEEK_END);
int len = ftell(myfp);
fseek(myfp, 0, SEEK_SET);
fread(buffer,len,1,myfp);
fclose(myfp);
fclose(fp);
string mystring(buffer);
std::string::size_type location=mystring.find("15238.0.172435",0);
std::string::size_type location1=mystring.find("116530640358374636",0);
if(location != std::string::npos )
cerr<<"Buffer Read that is read from file inside the if condition \n<\n"<<buffer<<"\n>"<<endl;
if(location1 != std::string::npos )
cerr<<"Buffer Read that is read from file inside the if condition and location1 \n<\n"<<buffer<<"\n>"<<endl;
remove("myfile.txt");
return 0;
stopped in main (optimized) at line 8 in file "fileex.cc"
8 int main(int argc, char **argv)
(dbx) cont
This goes to std error file
stopped in main (optimized) at line 27 in file "fileex.cc"
27 int len = ftell(myfp);
(dbx) print len
dbx: Can't evaluate local variables in optimized functionsDbx typically cannot show auto variables in optimized code. The reason is that the variables typically do not have a stable location, or might be eliminated altogether. Similarly, source code lines don't have a stable relationship to object code. The debug data emitted by Sun compilers is not enough to keep track of these issues.
We plan to provide better debugging of optimized code in a future release.
Dbx can show the value returned from a function, which in your case might be enough. -
) how can we print the bar code in SAP_SCRIPTS?
) how can we print the bar code in SAP_SCRIPTS?
hi Pavan,
barcodes wil be generated in the printer itself, if you give <BC>&HD_GEN-MATERIAL_NUMBER&<> then you have a value for "Barcode" .
Adding Your Own Bar Code:-
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94fc51ea11d189570000e829fbbd/content.htm
barcodes in SAP
http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
Print Unique Indicator as a Barcode
The printing of unique indicators of elements (reference numbers of records, case indicators, or document numbers) as barcodes is controlled by SAPscript forms.
SAP delivers a common SAPscript form based on the SAP barcode type AUFNR for records, cases, documents and incoming post items.
To create another SAP barcode type, you can copy the SAPscript form RMPS_BARCODE and then adjust it to your own requirements. Then you have to define the new form using the following attribute names in the table SCMGPARAM:
From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (First page, Next page, Last page) is printed as local variable symbol.
Definition in the SAPscript form:
/: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
/: USING &PAGE&
/: USING &NEXTPAGE&
/: CHANGING &BARCODE&
/: ENDPERFORM
/ &BARCODE&
Coding of the calling ABAP program:
REPORT QCJPERFO.
FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
OUT_PAR STRUCTURE ITCSY.
DATA: PAGNUM LIKE SY-TABIX, "page number
NEXTPAGE LIKE SY-TABIX. "number of next page
READ TABLE IN_PAR WITH KEY PAGE.
CHECK SY-SUBRC = 0.
PAGNUM = IN_PAR-VALUE.
READ TABLE IN_PAR WITH KEY NEXTPAGE.
CHECK SY-SUBRC = 0.
NEXTPAGE = IN_PAR-VALUE.
READ TABLE OUT_PAR WITH KEY BARCODE.
CHECK SY-SUBRC = 0.
IF PAGNUM = 1.
OUT_PAR-VALUE = |. "First page
ELSE.
OUT_PAR-VALUE = ||. "Next page
ENDIF.
IF NEXTPAGE = 0.
OUT_PAR-VALUE+2 = L. "Flag: last page
ENDIF.
MODIFY OUT_PAR INDEX SY-TABIX.
ENDFORM.
hope this helps you
Regards,
Jayant
Maybe you are looking for
-
Super Charger on P67A-G45 mb, windows 7 64-bit -- how do I get it to work?
Hi there, I'm not sure how to get this super charger feature to work. MSI update utility downloaded and installed the super charger utility First question: The description for the motherboard on the MSI website says it has "i-charger" (not "super ch
-
Spain: Statutory forms for the Spanish Government Fiscal Authority
Hi We are implementing FI in several Spanish companies. Our client has requested to produce directly from SAP some fiscal statutory forms for the Spanish Government Fiscal Authority, and they need to produce them in the exact format that the fiscal a
-
Implementing interactive Adobe forms
Hi, What are the ways of implementing interactive Adobe forms ? Can this be done without using EP (ISR framework) ? If so, please help. Thanks, Sowmya
-
Rh_struc_get authorization
Hi, rh_struc_get function module is failing for a user.Its working fine for other users. Its a authorization problem. i am using evalution paths like a008,etc. Any specific HR authorizations to be given for this?? please provide any
-
HELP WITH OPENING ITUNES!!
I recently had to restore my computer to default. I had Itunes on there and when I downloaded it again and now it won't open. It comes up with the message: "Itune's has encountered a problem and needs to close" It doesn't even bring it up at all. I w