Error in coding.
Hi friends.. Good Evening to everyone.. Well am an BW Consultant... I dont know abt coding...
Actualy i have a written coding in BW Routine which implement to any kind of transformation that was coded in the ABAP Programing language...
<i><u>My Program is:-</u></i>
IF COMM_STRUCTURE-DOC_CATEG = 'M' AND
COMM_STRUCTURE-ITEM_CATEG = 'TAN' AND
COMM_STRUCTURE-BILL_CAT = 'L'AND
COMM_STRUCTURE-KINAK = " ".
IF COMM_STRUCTURE-CON_TYPE = 'ZBPM' OR COMM_STRUCTURE-KINAK = " ".
SRESULT = COMM_STRUCTURE-KNVAL.
ELSEIF NOT COMM_STRUCTURE-CON_TYPE = 'ZBPM' AND COMM_STRUCTURE-CON_TYPE = 'ZBPO'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXT'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXT' AND COMM_STRUCTURE-CON_TYPE = 'ZECX'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZECX' AND COMM_STRUCTURE-CON_TYPE = 'JECX'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXM'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'JMAN'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'JEX2'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK04'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK4A'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK07'
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK7A'
SRESULT = COMM_STRUCTUE-KNVAL.
ENDIF.
ENDIF.
MY Error is : -Field "IF" is unknown. It is neither in one of the specified tables nor
defined by a "DATA" statement. "DATA" statement.
What was the meaning for that error.....
CHEERZ,
ALURI
Hi Aluri,
all statements should end with Period (.).
I have corrected the code, please try to use this.
IF COMM_STRUCTURE-DOC_CATEG = 'M' AND
COMM_STRUCTURE-ITEM_CATEG = 'TAN' AND
COMM_STRUCTURE-BILL_CAT = 'L' AND
COMM_STRUCTURE-KINAK = " ".
IF COMM_STRUCTURE-CON_TYPE = 'ZBPM' OR
COMM_STRUCTURE-KINAK = " ".
SRESULT = COMM_STRUCTURE-KNVAL.
ELSEIF NOT COMM_STRUCTURE-CON_TYPE = 'ZBPM' AND
COMM_STRUCTURE-CON_TYPE = 'ZBPO'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXT'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXT' AND
COMM_STRUCTURE-CON_TYPE = 'ZECX'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZECX' AND
COMM_STRUCTURE-CON_TYPE = 'JECX'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZEXM'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'JMAN'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'JEX2'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK04'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK4A'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK07'.
SRESULT = COMM_STRUCTUE-KNVAL.
ELSEIF COMM_STRUCTURE-CON_TYPE = 'ZK7A'.
SRESULT = COMM_STRUCTUE-KNVAL.
ENDIF.
ENDIF.
Similar Messages
-
Update termination error on coding in user exit EXIT_SAPLCOIH_009
HI All,
I am working on approval of a work order in IW32 for which I am coding within a user exit EXIT_SAPLCOIH_009 which gets triggerred at the time of saving the work order. This will update the AUFK table and send a mail to a recipient. But when I save the work order after approving it, it gives me an error saying "Update Termination error". I checked within the SM13 transaction and ST22 for dump analysis, it says "The ABAP/4 Open SQL array insert results in duplicate database records.". Can anyone tell me what could have gone wrong and how I can rectify this. Your help is greatly appreciated.
Thanks in AdvanceHello
This type of error will appear in three cases
1.when there is a record in the database and trying to insert another with the same number
2.If there is any inconsistencies in number ranges (check this only if you have changed the number ranges very recently)
3. If the output type and the output device is wrongly selected ( not the prescribed)
Analyse yourself.
Regards,
Prakash -
Dear Experts,
I have a one issue in Coding mask.My mask is "PSXP-XXX-00-00-00-00-00",For this mask im going to create wbs elements like CJ20nproject Definationwbs overviewCreate Wbs element,for this im not getting any error.But Im going to create Cj20nproject DefinationRight click on project definationcreate wbs.. In this scnerio the wbs element is not picking up the running number [Example:When im going to create level 1 wbs element through overview screen it will pick up "PSXP-001-01" and working fine,When im going to create WBS element through right click it is picking up like this "PSXP-001-1"].May i know the reasons please..It will very helpful for me..
By
SumaDear Pradeep,
Thanks for your quick response...
But my question is Project defination>wbs overview>create Wbs.Here it will pickup automatically running number(means 01).As you said numaric system it will not consider the zeroes,I agree..But it should not take When im going to create WBS through Overview screen right..In my case it is taking automatically running number automatically..
Second,In your version we will not create not morethan 9 wbs elements in that level right,then what is the use of taking "00"?.
If im wrong please correct me...
Regards,
Suma -
Error "Account Coding allocation" SE 508 while creating Service Entry
Hi SAP Gurus,
I am facing problem while creating Service entry as "Error in Account coding allocation"
As for the particular PO , SE is partially created and accepted, also MIRO entry is also done.
After that PO was deleted accidentally and again undeleted.
So when Analysed , found that ESKL table is updated with deletion indicator.
Path in PO Service tab>Account assignment>Change Display-->deletion flag is set, which is in display mode and cannot be changed.
As the whole cycle is completed for partial quantity the system is not allowing to change the deletion flag as per teh path above.
Also the notes 1087090 is applied.
Spoken with the abaper also as the note which is indicating the Exit "EXIT_SAPLMLSK_001" is also not active in our case.
Waiting for the reply ASAP.
Thanks & Regards.
Anil Singh ThakurHi,
Check the below link to resolve your issue.
Error in account coding allocation Message no. SE508 in creation of SES
Umakanth R -
Scene 1, Layer 'actions', Frame 1, Line 47, Column 2
1120: Access of undefined property instrument_txt.
this is my problem. any ideas. thanksI did try this and nothing happened, same error codes. The code works fine from CS5 and CS6 Flash versions. The animation runs well, the text displays where it should in the instrument_txt frame. It is when I try this in Flash CC that it creates the code error. here was an error that came up regarding text problems, something with FLT text converted to another text (I am not sure of the name of the text-type and the "FLT" I am not sure of either).
thanks -
In this program, I'm trying to make a horoscope where the user will select there astrological month through radio buttons. The program will then display the user horoscope. I'm currently getting this error when compiling using Textpad:
addItemListener(java.awt.event.ItemListener) in java.awt.Checkbox cannot be applied to (RadioButtonDemo)
radio12.addItemListener(this);
Here' is my code:
import java.applet.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
public class RadioButtonDemo extends Applet implements ActionListener{
TextField nameField;
CheckboxGroup radioGroup;
Checkbox radio1;
Checkbox radio2;
Checkbox radio3;
Checkbox radio4;
Checkbox radio5;
Checkbox radio6;
Checkbox radio7;
Checkbox radio8;
Checkbox radio9;
Checkbox radio10;
Checkbox radio11;
Checkbox radio12;
public void init(){
setLayout(new FlowLayout());
setSize(650,100);
nameField = new TextField("Type here Something",35);
radioGroup = new CheckboxGroup();
radio1 = new Checkbox("Aries (3/21-4/19)", radioGroup,false);
radio2 = new Checkbox("Taurus (4/20-5/20)", radioGroup,false);
radio3 = new Checkbox("Gemini (5/21-6/21)", radioGroup,false);
radio4 = new Checkbox("Cancer (6/22-7/22)", radioGroup,false);
radio5 = new Checkbox("Leo (7/23-8/22)", radioGroup,false);
radio6 = new Checkbox("Virgo (8/23-9/22)", radioGroup,false);
radio7 = new Checkbox("Libra (9/23-10/22)", radioGroup,false);
radio8 = new Checkbox("Scorpio (10/23-11/21)", radioGroup,false);
radio9 = new Checkbox("Sagittarius (11/22-12/21)", radioGroup,false);
radio10 = new Checkbox("Capricorn (12/22-1/19)", radioGroup,false);
radio11 = new Checkbox("Aquarius (1/20-2/18)", radioGroup,false);
radio12 = new Checkbox("Pisces (2/19-3/20)", radioGroup,false);
add(nameField);
add(radio1);
add(radio2);
add(radio3);
add(radio4);
add(radio5);
add(radio6);
add(radio7);
add(radio8);
add(radio9);
add(radio10);
add(radio11);
add(radio12);
radio1.addActionListener(this);
radio2.addActionListener(this);
radio3.addActionListener(this);
radio4.addActionListener(this);
radio5.addActionListener(this);
radio6.addActionListener(this);
radio7.addActionListener(this);
radio8.addActionListener(this);
radio9.addActionListener(this);
radio10.addActionListener(this);
radio11.addActionListener(this);
radio12.addItemListener(this);
nameField.addActionListener(this);
public void actionPerformed(ActionEvent evt)
if (evt.getSource() == radio12)
nameField.setText("That was the wrong button!");
repaint();
Please help me as i'm trying to learn java myself. Thanks in advance!In the code you're adding an ActionListener to radio buttons 1 to 11 and an ItemListener to radio button 12. Try changing the ItemListener to an ActionListener for radio button 12.
-
Error in coding in Eclipse SDK
I'm getting the following error:
The method setFirewall(Firewall) in the type InternetQuery is not applicable for the arguments (Firewall)
It also happens in these other instances:
The method setInteraction(Interaction2D) in the type Draw2D is not applicable for the arguments (Interaction2D)
Even weirder is there are two copies of this class (Not my code) yet the other identical class doesn't have this problem. The only difference is the package, but dragging one into the other's package doesn't change anything.
My confusion results from me sending the exact object to the method that it's supposed to take as a parameter, yet Eclipse doesn't seem to realize that. I've tried running it through javac as well to see if that helps (I'm on a redhat linux VPM), but that didn't work either.
Any ideas on what to do?
I've tried casting the inputs to see if that would help, and no luck. I also tried Eclipse's recommended fixes, but those created other problems. If you know how to use Eclipse's recommended fixes that could help as well. Thanks in advance for any responses.This sounds like a very simple problem, made more
difficult by a large number of classes. I'm not sure
that it's something that can really be solved on a
discussion forum, due to the large number of classes.
However, here are some things to think about:
1) Start by understanding your package structure. I
don't know if you're using 3rd-party code from a jar,
or if you've written everything. In the former case,
use "jar tvf" to get a listing of the contents of the
JAR. In the latter, use "find" (on Linux, probably
the search command on Windows) to get a listing of
all your .java file.
Correct, the code is 3rd party. I'll do that once I get the chance, which should be shortly. I can see all the classes as is in the project workspace though.
2) If you're using default packages anywhere (no
"package" statement at the top of the java file),
don't. Put all your code into packages.
I'll check, but I'm pretty sure there isn't. Eclipse shows the default package in the hierarchy, and that's not listed, so it would follow that it doesn't exist. I'll check anyways though.
3) Look at the files that are having problems, and
make sure that you import the proper classes (based
on the inheritance hierarchy in your project).
I'll check about importing the proper files as well.
If all of those are not the case though, is there anything else you could think of that it would be?
Part of the problem with this as well is thatwhile
importing the classes from other packages allowthe
class to be compiled in Eclipse, compiling them ina
terminal using the javac command doesn't work, asit
can't recognize the packages.It sounds like you haven't set up your compile-time
classpath. If you have classfiles in different
directory trees (or JARs) you'll need to specify the
-classpath option to javac. You'll also need to
compile the classes in the order of their
dependencies.
Okay, I'll toy around with that. That would make sense, as each package as its own directory.
As a side note, in the future it will help if you
paste the exact error message, along with the code
that it refers to.
Will do. -
Coding Block Message/Error While Posting in FICO
Hi Friends,
In Controlling creation of order types Transaction Code KOT2_OPA, I have created order category by selecting 01 Internal Order (Controlling), after configured everything I tried to post an entry (F-02) Telephone expenditure but system shows an error message "coding is blocked". Not only for internal order but also while posting transactions (F-02) for real order, budgeting etc., what should I do.....
Pls helpHi,
Could you please let me know the error number?
Best Regards,
Owen -
Data length error in record 86.
Data length error in record 86.
Message no. FV147
Diagnosis
An error occurred in the processing of the data to be imported. It is highly probable that this is a data error.
Contact your data provider.
System Response
Any account statement processing currently underway and any outstanding is being terminated.
Procedure
Check the structure of the supplied data. If the statement data you have obtained is error-free, you can simply restart the program. All those statements which have already been imported correctly will not be reimported.
{1:F01SCBLINBBXXXX3446100003}{2:O9400634140719SCBLINBBXXXX34461000031407190634N}{3:{108:00000000000718}}{4:
:20:14071905fr309439
:25:52205785839
:28C:611
:60F:D140718INR792788,04
:61:1407180718CR100000,00N169NONREF
:86:IN36701407187774 VIJBH14199069837
IN36701407187774 VIJBH14199069837
AGARWAL AGENCIES
:61:1407180718CR150000,00N169NONREF
:86:IN36701407187251 SBIN414199017384
IN36701407187251 SBIN414199017384
EAGLE FOOTWERE
:61:1407180718CR100000,00N169NONREF
:86:IN36701407187052 SAA96678573
IN36701407187052 SAA96678573
TANVEER TRADERS
:61:1407180718CR98000,00N169NONREF
:86:IN36701407186828 SBIN314199982628
IN36701407186828 SBIN314199982628
MODERN AGENCY
:61:1407180718CR179000,00N169NONREF
:86:IN36701407186029 SAA96670577
IN36701407186029 SAA96670577
BALAJI ENTERPRISES
:61:1407180718CR60000,00N169NONREF
:86:IN36701407185397 367845438
IN36701407185397 367845438
SAKSHI ENTERPRISES
:61:1407180718CR2000000,00N169NONREF
:86:IN3670140718H568 SBIN414199360804
IN3670140718H568 SBIN414199360804
RELAXO FOOTWEARS LIMITED
:61:1407180718CR38000,00N169NONREF
:86:IN3670140718G554 CBINH14199566672
IN3670140718G554 CBINH14199566672
WONDER WALK AGENCIES
:61:1407180718CR113000,00N169NONREF
:86:IN3670140718F851 JAKA140718621672
IN3670140718F851 JAKA140718621672
JYOTI SALES PROP MR AMIT VOHRA S
:61:1407180718CR54200,00N169NONREF
:86:IN3670140718F006 BKIDN14199343033
IN3670140718F006 BKIDN14199343033
SHAH FOOT WEAR
:61:1407180718CR64000,00N169NONREF
:86:IN3670140718F094 BKIDN14199343132
IN3670140718F094 BKIDN14199343132
MUSKAN TRADERS
:61:1407180718CR114500,00N169NONREF
:86:IN3670140718F423 SBIN414199302946
IN3670140718F423 SBIN414199302946
GOUTAM DISTRIBUTORS
:61:1407180718CR63000,00N169NONREF
:86:IN3670140718D651 SD1141261589
IN3670140718D651 SD1141261589
M K FOOTWEAR
:61:1407180718CR67913,00N169NONREF
:86:IN3670140718D057 SBIN414199247753
IN3670140718D057 SBIN414199247753
SSS PG STORES
:61:1407180718CR130000,00N169NONREF
:86:IN3670140718D183 UTBIN14199275937
IN3670140718D183 UTBIN14199275937
GOPAL SHOES
:61:1407180718CR48000,00N169NONREF
:86:IN3670140718C628 CBINH14199546949
IN3670140718C628 CBINH14199546949
AGGARWAL FOOTWEAR
:61:1407180718DR5000000,00N506PIRLXOIN01A00468
PIRLXOIN01A00468
:86:PIRLXOIN01A00468 SCBLR12014071800003757
CASH SCBLR12014071800003757
RELAXO FOOTWEARS LIMITED
SIN09373C0000423 00001 PIRLXOIN01A0
0468
PIRLXOIN01A00468
:61:1407180718DR4000000,00N506PIRLXOIN01A00469
PIRLXOIN01A00469
:86:PIRLXOIN01A00469 SIN09373Q0000468
PIRLXOIN01A00469-SIN09373Q0000468
SB3670140718HK96
SIN09373C0000424-00001 PIRLXOIN01A0
0469
:61:1407180718DR1699195,25N699TRF
:86:316031790865 PAY001
316031790865 PAY001
GRAND WISE ENTERPRISES LIMITED
AKMP037
USD28,030.8 60.5755/INR743.76 1
DEBIT IMEX CUSTOMER A/C
:61:1407180718CR480000,00N195NONREF
:86:IL36701407182157 BARBR52014071800734481
CASH BARBR52014071800734481
APNA FOOT WEAR
SENDER IFSCBARB0CHARMI
IL36701407182157
:61:1407180718CR235000,00N195NONREF
:86:IL36701407185517 SBINR52014071801147506
CASH SBINR52014071801147506
PRAKASH FOOT WEAR
FUND TRF FRM 33174969142 TO52205785
SENDER IFSCSBIN0016310
IL36701407185517
:61:1407180718CR500000,00N195NONREF
:86:IL36701407185083 SBINR12014071801142317
CASH SBINR12014071801142317
MODERN FOOTWEARS
SENDER IFSCSBIN0001521
IL36701407185083
:61:1407180718CR800000,00N195NONREF
:86:IL36701407184746 HDFCR52014071851912408
CASH HDFCR52014071851912408
FASHION SQUARE
SENDER IFSCHDFC0000412
IL36701407184746
:61:1407180718CR332000,00N195NONREF
:86:IL36701407184713 SBINR52014071801140001
CASH SBINR52014071801140001
WINGS POLYMERS
SENDER IFSCSBIN0001581
IL36701407184713
:61:1407180718CR450000,00N195NONREF
:86:IL36701407184302 FDRLR52014071800031798
CASH FDRLR52014071800031798
ABHINAV ENTERPRISE
SENDER IFSCFDRL0001492
IL36701407184302
:61:1407180718CR650000,00N195NONREF
:86:IL36701407183976 UCBAR32014071800058993
CASH UCBAR32014071800058993
GAYLORD SHOE AND CHAPPAL
SENDER IFSCUCBA0000048
IL36701407183976
:61:1407180718CR700000,00N195NONREF
:86:IL36701407183860 SBINR52014071801134507
CASH SBINR52014071801134507
FOOTWEAR HOUSE
RTGS TGH CHQ NO 172867
SENDER IFSCSBIN0008602
IL36701407183860
:61:1407180718CR250000,00N195NONREF
:86:IL36701407183487 SBINR52014071801131379
CASH SBINR52014071801131379
PRATAP AGENCY PROP MRS SUNITA KUMRA
SENDER IFSCSBIN0014152
IL36701407183487
:61:1407180718CR254740,00N195NONREF
:86:IL36701407182511 HDFCR52014071851915942
CASH HDFCR52014071851915942
HEPHZIBAH AGENCIES
SENDER IFSCHDFC0001498
IL36701407182511
:61:1407180718CR398000,00N195NONREF
:86:IL36701407182496 BARBR52014071800726312
CASH BARBR52014071800726312
RAZA FOOT WEAR
SENDER IFSCBARB0BASTIX
IL36701407182496
:61:1407180718CR300000,00N195NONREF
:86:IL36701407182349 KKBKR52014071800664337
CASH KKBKR52014071800664337
M M DISTRIBUTORS
PAYMENT
SENDER IFSCKKBK0000958
IL36701407182349
:61:1407180718CR61136,00N169NONREF
:86:IN3670140718C504 IOBAN14199026875
IN3670140718C504 IOBAN14199026875
M S CHINNS TRADERS
:61:1407180718CR79995,00N169NONREF
:86:IN3670140718C142 SBIN414199219784
IN3670140718C142 SBIN414199219784
FRONTIER TRADING COMPANY
:61:1407180718CR100000,00N169NONREF
:86:IN3670140718B731 SBIN414199200112
IN3670140718B731 SBIN414199200112
SHRI AMBEY TRADERS
:61:1407180718CR125000,00N169NONREF
:86:IN3670140718B521 N199140025581074
IN3670140718B521 N199140025581074
SHYAM BROTHERS
:61:1407180718CR68000,00N169NONREF
:86:IN3670140718A144 1205061871400003
IN3670140718A144 1205061871400003
POPULAR TRADERS PROP PISHORI LAL SETHI
:61:1407180718CR41000,00N169NONREF
:86:IN3670140718A044 P14071849681718
IN3670140718A044 P14071849681718
AKSHAY FOOTWEARS
:61:1407180718CR50000,00N169NONREF
:86:IN3670140718A099 BARBH14199284604
IN3670140718A099 BARBH14199284604
STAR ENTERPRISE
:61:1407180718CR100000,00N169NONREF
:86:IN3670140718A002 SAA21370357
IN3670140718A002 SAA21370357
JAI OMKAR ENTERPRISES
:61:1407180718CR120000,00N169NONREF
:86:IN36701407189725 UTBIN14199269504
IN36701407189725 UTBIN14199269504
SANTI STORES
:61:1407180718CR100000,00N169NONREF
:86:IN36701407189538 SBIN414199107266
IN36701407189538 SBIN414199107266
VINAYAK TRADING
:61:1407180718CR100000,00N169NONREF
:86:IN36701407189842 SAA3564919
IN36701407189842 SAA3564919
SKY STYLE MARKETING PROP.ABHISHEK S
:61:1407180718CR120000,00N169NONREF
:86:IN36701407189384 MAHBH14199609866
IN36701407189384 MAHBH14199609866
ROYAL FOOT WEAR
:62F:D140718INR1697499,29
:64:C140718INR59273846,71
-}{5:{CHK:CHECKSUM DISABLED}{MAC:MACCING DISABLED}}SAP REPLAY
Regarding the incidence itself, kindly consider that The 86-record
limitation is not a bug of the program, but the standard design.
The error is coded as FV147, when the Note to Payee in Record 86
exceeds 65 characters in Program RFEKA400.
You will need to contact your Bank in order to obtain a correct file:
I have attached some documentation on this message that will allow your
bank to create it.
Otherwise, you may use the following user-exit (SAP NOTE 494777):CMOD
Enhancement Exit Name FEB00004 > EXIT_RFEKA400_001.
This User Exit is called in RFEKA400 in the line: PERFORM
PROCESS_RAW_DATA TABLES SWIFT. In Include ZXF01U06, you have
the option to process the raw data.
Hope this information is useful to you. -
Pls help me in correcting the error
In my code i have coded such that if the idoc status is 51 or 68 then the details corresponding to it should be displayed.Now have to add a new part in coding like if the status is not 51 or 68 error message should be diplayed.This is the coding ..Plz help its urgent..
IF gw_cntrl_rcrd-status = 51 OR gw_cntrl_rcrd-status = 68.
Get vendor details
PERFORM get_details.
get details of errored idoc
PERFORM get_idoc_errors.
ENDIF.Hi Saranya,
You collect all the error records in the internal table based on the status check and finaly display the error records if the internal table is not initial.
IF gw_cntrl_rcrd-status = 51 OR gw_cntrl_rcrd-status = 68.
Get vendor details
PERFORM get_details.
get details of errored idoc
PERFORM get_idoc_errors changing it_error.
else
*error message coding .
*Colloect all the errors in the internal table it_error.
ENDIF.
if not it_error is initial.
Display the error records which are collected in it_error.
endif.
Regards,
Boobalan Suburaj -
Reg:error messages display in wdabap
hi expert
could you please say what i need to pass the values which are mandatory in this error message coding .can you please share some the documents related to error messages display.
method ONACTIONEXECUTEACTION .
if sy-subrc ne 0 .
get message manager
DATA LO_API_CONTROLLER TYPE REF TO IF_WD_CONTROLLER.
DATA LO_MESSAGE_MANAGER TYPE REF TO IF_WD_MESSAGE_MANAGER.
LO_API_CONTROLLER ?= WD_THIS->WD_GET_API( ).
CALL METHOD LO_API_CONTROLLER->GET_MESSAGE_MANAGER
RECEIVING
MESSAGE_MANAGER = LO_MESSAGE_MANAGER
report message
CALL METHOD LO_MESSAGE_MANAGER->REPORT_ATTRIBUTE_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = 'THE ENTERED TICID IS NOT AVAILABLE' .
ELEMENT =
ATTRIBUTE_NAME =
PARAMS =
MSG_USER_DATA =
IS_PERMANENT = ABAP_FALSE
SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CTXT_ELEMENT
MSG_INDEX =
CANCEL_NAVIGATION =
IS_VALIDATION_INDEPENDENT = ABAP_FALSE
ENABLE_MESSAGE_NAVIGATION =
VIEW =
RECEIVING
MESSAGE_ID =
else .
DATA LO_COMPONENTCONTROLLER TYPE REF TO IG_COMPONENTCONTROLLER .
LO_COMPONENTCONTROLLER = WD_THIS->GET_COMPONENTCONTROLLER_CTR( ).
LO_COMPONENTCONTROLLER->GETDATA(
WD_THIS->FIRE_OUTVIEW1_PLG(
endmethod.
endif.
thanks in advance
Deepika
Edited by: deepika_indian on Aug 18, 2010 7:32 AMHi Deepika,
Here for the method REPORT_ATTRIBUTE_ERROR_MESSAGE, mandotory fields are
MESSAGE_TEXT
ELEMENT
ATTRIBUTE_NAME
Here ELEMENT v need to pass lv_el_context type ref of IF_WD_CONTEXT_ELEMENT.(Context Elemet Reference).
Suppose your context having an attribute 'KUNNR'.
So, here v need to pass in the below manner to raise an exception
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->Element_context.
DATA lv_gr2_visible TYPE wd_this->Element_context-kunnr.
* get message manager
data lo_api_controller type ref to if_wd_controller.
data lo_message_manager type ref to if_wd_message_manager.
lo_api_controller ?= wd_This->Wd_Get_Api( ).
CALL METHOD lo_api_controller->GET_MESSAGE_MANAGER
RECEIVING
MESSAGE_MANAGER = lo_message_manager
* report message
CALL METHOD lo_message_manager->REPORT_ATTRIBUTE_ERROR_MESSAGE
EXPORTING
MESSAGE_TEXT = 'MESSAGE TEXT TO DISPLAY'
ELEMENT = lo_el_context
ATTRIBUTE_NAME = 'KUNNR'
* PARAMS =
* MSG_USER_DATA =
* IS_PERMANENT = ABAP_FALSE
* SCOPE_PERMANENT_MSG = CO_MSG_SCOPE_CTXT_ELEMENT
* MSG_INDEX =
* CANCEL_NAVIGATION =
* IS_VALIDATION_INDEPENDENT = ABAP_FALSE
* ENABLE_MESSAGE_NAVIGATION =
* VIEW =
* RECEIVING
* MESSAGE_ID = .
Kindly revert for further clarification.
Regards,
Amarnath S -
Error when connecting postgresql
I wrote a java program to connect to a postgresql server.
import org.postgresql.* ; import java.sql.* ; public class TestDB { public static void main(String args[]) { try { Class.forName("org.postgresql.Driver").newInstance(); String url = "jdbc:postgresql://localhost:5432/mydb" ; Connection con = DriverManager.getConnection(url, "postgre" , "password" ); Statement st = con.createStatement(); String sql = "select * from schedule" ; ResultSet rs = st.executeQuery(sql); while (rs.next()) { System.out.println(rs.getInt(1)); } rs.close(); st.close(); con.close(); } catch (Exception ee) { System.out.print(ee.getMessage()); } } }
I created a user "postgre".
When I run the TestDB program
The following errors found:
ZoneInfo: wrong magic number: Asia/Hong_Kong ZoneInfo: wrong magic number: ZoneInfoMappings ZoneInfo: wrong magic number: ZoneInfoMappings FATAL: password authentication failed for user "postgre"
my configures are as follows:
postgresql.conf
listen_addresses = '*' # what IP address(es) to listen on; # comma-separated list of addresses; # defaults to 'localhost', '*' = all # (change requires restart) port = 5432 # (change requires restart) max_connections = 100 # (change requires restart)
pg_hba.conf
# "local" is for Unix domain socket connections only local all all trust # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5
What have I missed to set or error in coding? thanks for any advices.uatIvan wrote:
When I changed the pg_hba.conf as follows:
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 127.0.0.1/32 *trust*
# IPv6 local connections:
host all all ::1/128 md5I got the error of magic number only but can get the data
What is the difference of trust and md5?
Edited by: uatIvan on Sep 17, 2008 8:39 PMSounds like a question for PostGreSQL (or, more likely, it's documentation), not JDBC or Java in general. -
Error in Call Method 'create_dynamic_table'.
Hi Experts,
i am working on Dynamic ALV.I have created a Dynamic Fieldcatalog,which is storing the correct field values as per requirement.
When I debbug the code: I get the following error when I am calling method 'create_dynamic_table'.
"Unable to interpret "MATERIALS(000010)". Possible 10 MATERIALS(000010)"
DATA: g_table TYPE REF TO data.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = i_fieldcat
IMPORTING
ep_table = g_table.
* EXCEPTIONS
* generate_subpool_dir_full = 1
* OTHERS = 2.
Please advice how do I approach this error.Is some change required in my piece of code?
Thanks.Hi Marcin,
Thanks for all the help,finally solved the issue.I made a small error while coding the Fieldcatalog:
now the changed code looks like the following code:
LOOP AT i_tckh3 INTO w_tckh3.
LOOP AT i_tckh1 INTO w_tckh1 WHERE elemt = w_tckh3-elemt.
lcount = lcount + 1.
WRITE w_tckh1-txele TO w_fieldcat-seltext LEFT-JUSTIFIED.
CONCATENATE 'KST' w_tckh3-el_hv INTO w_fieldcat-fieldname.
TRANSLATE w_fieldcat-fieldname TO UPPER CASE.
w_fieldcat-col_pos = lcount.
w_fieldcat-ref_field = 'KST001'.
w_fieldcat-ref_table = 'KEPH'.
w_fieldcat-datatype = 'CURR'.
APPEND w_fieldcat TO i_fieldcat.
CLEAR w_fieldcat.
CLEAR: w_tckh1.
ENDLOOP.
CLEAR:w_tckh3.
ENDLOOP.
Emphasis on the COncatenate statement in the loop.Earlier I was passing the TXELE field to fieldname,which was wrong.
Thanks a Ton!!!!
I have a small dount in the next step:While assigning the values to the final internal table:
LOOP AT i_final INTO w_final.
ASSIGN COMPONENT 'WERKS' OF STRUCTURE <i_value> TO <fs1>.
<fs1> = w_final-werks.
ASSIGN COMPONENT 'MATNR' OF STRUCTURE <i_value> to <fs1>.
<fs1> = w_final-matnr.
LOOP AT i_keph INTO w_keph WHERE kalnr = w_final-kalnr.
ASSIGN COMPONENT 'KST001' OF STRUCTURE <i_value> TO <fs1>.
<fs1> = <FS1> + w_keph-kst001.
ENDLOOP.
APPEND <i_value> TO <i_table>.
CLEAR: <i_value>.
ENDLOOP.
Now the LOOP AT I_KEPH: has all the values of the cost fields.I need to assign the appropriate value of KSTXXX to the corresponding Dynamic fieldcatalog:What should the procedure be.I am NOT able to check what values are there in dynamic calatog.
Hope this point is not too confusing. -
Error - && operator is undefined for the arugument type java,lagn.string
Hi All
I am new to this forum and also java .
Below is my program
Please let me know the fix for this error
Thanks
Guna
The Logic is , I want to check the customer first,last and middle name .
Senario 1 : I want to check the customer name if he gives only FIRST NAME
Senario 2 : I want to check the customer name if he gives only LAST NAME
Senario 3 : I want to check the customer name if he gives only MIDDLE NAME
Senario 4 : I want to check the customer name if he gives First name and last name - this wher i get my error
My Coding
package SelfLearning;
import java.util.*;
public class CustomerUtil {
boolean SearchCustomer(List<Customer> listObj , Customer cust )
Iterator listOfCustomerObj = listObj.iterator();
Customer cust1 = null ;
while(listOfCustomerObj.hasNext())
cust1 = (Customer) listOfCustomerObj.next();
if(cust1.getFirstName().equalsIgnoreCase(cust.getFirstName()))
System.out.println("Customer Found");
if(cust1.getLastName().equalsIgnoreCase(cust.getLastName()))
System.out.println("Customer Found");
// I am getting error here , How to fix this error . please let me know is there any another want to rewrite this condition.
if(cust1.getFirstName()&& cust1.getLastName().equalsIgnoreCase(cust.getFirstName()&& cust.getLastName())
System.out.println("Customer Found");
return true ;
}Folks
I am new to this forum and also to java .
I will post the whole coding.
I did try putting the code tag but its not working . Sorry
I saw the link but I cant do it .
Below is my coding
{code }
package SelfLearning;
public class Customer {
String firstName;
String LastName;
String MiddleName;
public Customer() {
public Customer(String firstName, String lastName, String middleName) {
super();
this.firstName = firstName;
LastName = lastName;
MiddleName = middleName;
public String getFirstName() {
return firstName;
public void setFirstName(String firstName) {
this.firstName = firstName;
public String getLastName() {
return LastName;
public void setLastName(String lastName) {
LastName = lastName;
public String getMiddleName() {
return MiddleName;
public void setMiddleName(String middleName) {
MiddleName = middleName;
package SelfLearning;
import java.util.*;
public class CustomerUtil {
boolean SearchCustomer(List<Customer> listObj , Customer cust )
Iterator listOfCustomerObj = listObj.iterator();
Customer cust1 = null ;
while(listOfCustomerObj.hasNext())
cust1 = (Customer) listOfCustomerObj.next();
if(cust1.getFirstName().equalsIgnoreCase(cust.getFirstName()))
System.out.println("Customer Found");
if(cust1.getLastName().equalsIgnoreCase(cust.getLastName()))
System.out.println("Customer Found");
// Here I want to check both first and last name . But Some how I am unable to do it .
if((cust1.getFirstName()+cust1.getLastName().equalsIgnoreCase(custObj4.getFirstName()+(custObj4.getLastName()))
System.out.println("Customer Found");
return true ;
package SelfLearning;
import java.util.ArrayList;
import java.util.List;
public class TestCustomer {
* @param args
public static void main(String[] args) {
Customer custObj1 = new Customer("John" , "Lee ", "jayson");
Customer custObj2 = new Customer("Matt" , "G ", "C");
Customer custObj3 = new Customer("Bob" , "George ", "K");
List customerDetails = new ArrayList();
Customer custObj4 = new Customer();
custObj4.setFirstName("Kela");
custObj4.setMiddleName("v");
customerDetails.add(custObj1);
customerDetails.add(custObj2);
customerDetails.add(custObj3);
CustomerUtil custUtil = new CustomerUtil();
custUtil.SearchCustomer(customerDetails , custObj4);
Edited by: Guna on Apr 7, 2011 11:59 AM -
Auth Check Works NO ERROR Display
I have created a simple authorization system by following the 2day tutor example which works in that it prevents unauthorized access but what doesn't seem to work is a display of my error message coded on the same authorization screen. Any Ideas?
al walkerScott
It is protecting two pages in my application one for inserts and the other for updates. The code is working from the aspect that a blank screen (no update form) is displayed for a non-priveleged user but no error is displayed. When a user matching the query is encountered the proper update form is displayed.
under expression 1
select '1'
from cell_db_users
where (upper(user_name) = upper(:APP_USER) AND
cellrole in ('admin', 'update'))
or (upper(:APP_USER)= 'backdoor')
under error message I have:
YOU ARE NOT AUTHORIZED TO ACCESS THIS FUNCTION
Maybe you are looking for
-
Can I use my IPad as a backup for my IMac instead of an external hard drive?
I'm wondering if I can use my iPad as a backup for my iPad instead of an external hard drive?
-
Moderator message - please use meaningful subject in future Hi, My requirement is : We get a input file in .XLS format. To load, it has to be converted to .TXT format. But this conversion sometimes creates junk characters in the load file. so to rect
-
Hi, I have created a ui5 page and i want to apply style to it. so can anyone help me with the process on how to use the separate css file and style the different elements. Thanks
-
Embedding Chinese Characters and File Size
Hello, Recently my company commissioned a Flash based eLearning module from a vendor. The module was in English. We then contracted a version in Chinese. When we got the files back we noticed a dramatic increase in the file size of the relevant resou
-
Plug-ins for viewing files such as .swfs and .rtfs in Finder's Preview Pane
Are there plug-ins which would allow files such as .html and .rtf to display details of their content within the Finder's Preview pane, in a way similar to the way it is possible to preview .pdf, .txt, and .jpg files? thanks