‎2007 Jul 05 5:54 AM
Hi Friends,
1) As an ABAPER..in coding part .. how to implement the logic???
mean.. how to perfect to think a logic part in programing???
how to i practice?? explain pls.
2) the program conatins the 6,000 lines coding...
my question is .. why this prg required for a simple output..
in prg .. there are any links to one part to another part..
regards,
‎2007 Jul 05 5:58 AM
Hi Friends,
when we doing DEBUGGING a prg..
1) can we check the all conditions.. like
if i am debugging for all entries statement..i want to check the
select options conditions and other conditions...
regards,
‎2007 Jul 05 5:59 AM
Hi,
It all depends an what kind of INPUT you want to provide and what kind of output you want to SEE.
You dont need 6000 lines of code for taking the input and displaying it in a simple way.
But you do need 6000 lines if you want to make sure that your INPUT is correct in all senses before you make use of it and you want to get some fancy out put you do need to have more code.
But it does not mean more the code more the good logic.
Do develop logic you need to first analyze the problem and come up with an algorith for your problem which can solve it in minimum number of steps.
Once you have your algorith you just need to find out the best possible SYNTAX that is availalbe in the Programming language you want to use, Nasically optimized code.
So when you anaylyze and know the syntax better you get the best performance.
Best performance comes from a best logic.
YES it is possible to SEE the internal table entries that you are using in FOR ALL ENTRIES.
Regards,
Sesh
‎2007 Jul 05 8:39 AM
Hi Seshu,
thanks for ur clarification.
pls..see below code. here i have one doubt..
when i am doing a DEBUGGING.. IT IS COMPUSORY TO CHECK THE
ON CONDITIONS AND WHERE CONDITIONS .if i check .the conditions are not satfied
the n i will check the data in tables OR i want to ask Functional people For Creating TEST data. EXPLAIN
IF NOT IT_MARD[] IS INITIAL.
SELECT MKPFMBLNR MKPFMJAHR MKPFVGART MKPFBLDAT MKPF~XBLNR
MSEGZEILE MSEGBWART MSEGMATNR MSEGLGORT MSEG~DMBTR
INTO TABLE ITab
FROM ( MKPF INNER JOIN MSEG
ON MKPFMBLNR = MSEGMBLNR AND
MKPFMJAHR = MSEGMJAHR )
FOR ALL ENTRIES IN IT_MARD
WHERE MKPF~VGART IN R_VGART
AND MKPF~BLDAT IN R_BLDAT
AND MSEG~BWART IN ('1','5','6')
AND MSEG~MATNR = IT_MARD-MATNR.
Regards,
‎2007 Jul 05 8:41 AM
Hi Vijay,
IF you find there is no data in the DB table and the select queries are failing, then ask youu functional consultant to create the test data.
Regards,
Atish