Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

purchase order issue

Former Member
0 Likes
3,740

Dear experts,

There is an issue with purchase order.

In the case of IMPORT PO purchase order printpreview. Am not getting one of the text element value. I should get 56,000 but am getting only 560.00. It is ocean/airfreight-val 560.00 i should get 56,000. Here the table value also maintained.. I dont know what issue is this.

For example like this format

amount

12334

13627

7253

83663

below to this the ocean/airfreight-val 56,000 should be displayed but am getting only 560.00.

then below to this the grand total will be displayed....when we add all the four amount i'll be getting 280,000+the ocean airfreight val 56,000...so i should get 336000.

I have checked the smartform condition also...

conditions in smartforms for this particular one is.

JOFV NE '0.00'

EKKO-BSART EQ 'ZCVD'.

GENERAL ATTRIBUTES

OCEAN/AIRFREIGHT-VAL : &JOFV(CZ)&

ABAP EDITOR CONDITIONS FOR OCEAN/AIRFREIGHT-VAL

1.LOOP AT ITAB_COND WHERE KSCHL EQ 'JOFV'.

JOFV = JOFV + ITAB_COND-KWERT.

ENDLOOP.

2.IF EKKO-BSART = 'ZCVD'.

POTOTAL = W_TOTAL + W_DISTOTAL + W_DISTOTAL1 + JSVD + JEC3 + JSE1 + TAEDUTY + TECESS + TSECESS +

TDIS + TZAMM + TVAT +

TVATR + ZSSC + ZAAD +

TCST + TKRT + TR3T + TR2T + TFAT + TFBT + TFCT +

TP1T + TP2T + TP3T +

JES3 + JSDB + JCDS + JAAD + JAOQ + ZPKV + TYINSUR +

IPF1 + JOFV + JOFP +

+ Z001 + ZWCT

+ TZPC + TZFFC + TZBCR + TZECP + TZMGO + TZINT + ZPC1 + TYOTHERS

+ WK_INS + WK_DISC + WK_PACK + WK_FRGT + WK_PACK_AFED + TTJSVD.

ELSE.

3.POTOTAL = W_TOTAL + W_DISTOTAL + W_DISTOTAL1 + JSVD + JEC3 + JSE1 + TAEDUTY + TECESS + TSECESS

+ TDIS + TZAMM + TVAT

+ TVATR + ZSSC + ZAAD

+ TCST + TKRT + TR3T + TR2T + TFAT + TFBT + TFCT

+ TP1T + TP2T + TP3T

+ JES3 + JCDB + CVD + JEDB + JSDB + JCDS + JAAD + JAOQ + ZPKV + TYINSUR

+ IPF1 + JOFV + JOFP

+ Z001 + ZWCT

+ TZPC + TZFFC + TZBCR + TZECP + TZMGO + TZINT + ZPC1 + TYOTHERS

+ WK_INS + WK_DISC + WK_PACK + WK_FRGT + WK_PACK_AFED + TTJSVD. " added ny mm on 25.01.2011

ENDIF.

thanks & regards,

selva.....

Hi,

Did u got any idea?....are u busy ?...

regards,

selva..

38 REPLIES 38
Read only

Former Member
0 Likes
3,623

Hi,

Please declare JOFV type KWERT in call program. I hope your issue will resolve.

regards,

Dhina..

Read only

0 Likes
3,623

Hi dhina,

Yes ur rite i have checked. The particular type is not declared. But please tel me how to write.

like simply data: jofv type kwert. is enough in data declaration or something else to write...

Rgards,

selva.......................

Read only

0 Likes
3,623

Hi,

is it ok. once your doing calculation based on the currency field or quantity field declare the correct data element. dont declare like N or I.

Regards,

Dhina..

Read only

0 Likes
3,623

Hi dhina,

That is fine..but please tell me is this is ok

DATA: JOFV TYPE KWERT.

OR SOMETHING ELSE TO DECLARE IN DATA DECLARATION.

REGARDS,

SELVA...

Read only

0 Likes
3,623

ya this is ok.. what your getting the output.

Regards,

Dhina..

Read only

0 Likes
3,623

HI dhina,

I have declared like what u said...

data: jofv type kwert.

it seems that data has been delcared like this...in this format..

JOFV LIKE PC207-BETRG,

TOFV(14)

i dnt know what to do ...

Regards,

selva...

Read only

0 Likes
3,623

Hi,

in your program please debug what value your passing the value to smartform for this field 'JOFV'?

if is it 56,000? the problem in smartform.

if is it 560.00? the problem in declaration please change to KWERT .

please put the debugger after the loop statement like


LOOP AT ITAB_COND WHERE KSCHL EQ 'JOFV'.
JOFV = JOFV + ITAB_COND-KWERT.  
ENDLOOP.

please tell me after the loop st wht your getting value for JOFV.

Regards,

Dhina..

Edited by: Dhina DMD on Jun 17, 2011 7:15 AM

Read only

0 Likes
3,623

BETRG is char 9 dec 2. while kwert is char 13 dec 2.

replace the data declaration by kwert.

Put a break point in the loop where you are doing the total.Check what value are you getting.

Read only

0 Likes
3,623

Hi dhina,

The value am getting AFTER DEBUGGING for JOFV is '0.00', which i have given in smartform conditons for the particular type JOFV-OCEAN/AIRFREIGHT-VAL.

Thanks & regards,

selva...

Read only

0 Likes
3,623

Hi,

please ans the following question..

1) Your problem is getting output for 560.00 in JOFV field?

2) JOFV field how your transporting to smart form using IMPORT parameter or tables?

if 1 st question is yes means please do the steps:

better change the declaration JOFV type KWERT. because kwert is having char 13 dec 2.

if your declaring BETRG is having char 9 dec 2.


*JOFV LIKE PC207-BETRG,"comment this.
jofv type kwert.

if the 2nd question is pass the value to Import parameter means change type as KWERT.

if the 2nd question is pass the value to table parameter means check the internal table JOFV field declare as KWERT.

You said in smartforms your calling like..


OCEAN/AIRFREIGHT-VAL : &JOFV(CZ)& " this is correct one dont change in smart form. 

Regards,

Dhina..

Read only

0 Likes
3,623

<sorry>

Read only

0 Likes
3,623

Hi dhina,

i have an another issue. if u r free then give me a mail..will tell u the issue in invoice printout. nothing in invoice printout...there will EXCEISE DUTY, VAT,EDU CESS AND ALL..

so there "excise duty @10% and the value" not displaying....

thanks & regards,

selva..

Read only

0 Likes
3,623

Hi dhina,

i tried everything but not getting o/p in production..it seems am getting o/p in development...everything s perfect in development....i got a no for development and checked here perfect getting 56,000..but something wrong with production..so no changes in program dhina.......something else

regards,

selva...

Read only

Rushikesh_Yeole
Contributor
0 Likes
3,623

in smartforms, declartion of fields, we have to declare the currency fields.

have you done that.

Read only

0 Likes
3,623

Hi dhina,

You means the fields in the conditions rite...

this is what i have declared JOFV NE '0.00' AND EKKO-BSART EQ 'ZCVD'.

regards,

selva....

Read only

0 Likes
3,623

HI dhina,

I don't know which is import paramter and table parameter..how to see that..

regards,

selva....

Read only

0 Likes
3,623

Hey,

i told change the declaration part.. Not in codding.

in declaration part you declare like this JOFV LIKE PC207-BETRG,

instead of that declare like this jofv type kwert.

I am not told to change the condition in loop.

Please read what i am told.

if you declare like


jofv type kwert

You solve the issue.

Regards,

Dhina..

Read only

0 Likes
3,623

Hi dhina,

sorry yaar...i think am disturbing u a lot...

yes i done what u said..i delared like

data: jofv type kwert.

ok after this has done..we can't see the output in development. so do i need to tell EDP TO transfer it to production then they can see the output na...

regards,

selva...

Read only

0 Likes
3,623

ok transport and see the output

Read only

0 Likes
3,623

Hi dhina,

There was a runtime error when i see the output in my development. it seems that these are the things displayed in errors...

RUNTIME ERRORS: CALL_FUNCTION_CONFLICT_TYPE.

EXCEPT CX_SY_DYN_CALL_ILLEGAL_TYPE

SHORT TEXT: TYPE CONFLICT WHEN CALLING A FUNCTION MODULE

ERROR: ERROR IN THE ABAP APPLICATION PROGRAM

THE CURRENT ABAP PROGRAM HAD TO BE TERMINATED BECS IT HAS COME ACROSS A STATEMENT THAT UNFORTUANATELY CANNOT BE EXECUTED.

A FUNCTION MODULE WAS CALLED INCORRECTLY.

ERROR ANALYSIS:

THE EXCEPTION WHICH IS ASSIGNED TO CLASS 'CX_SY_DYN_CALL_ILLEGAL_TYPE', WAS NOT CAUGHT AND THERFORE CAUSED A RUNTIME ERROR.

THE REASON FOR THE EXCEPTION IS THE CALL TO THE FUNCTION MODULE '/1BCDWB/SF00000034'

IS INCORRECT.

THE FUNCTION MODULE ALLOWS U TO SPECIFY ONLY FIELDS OF A PARTICULAR TYPE UNDER 'JOFV'.

THE FIELD 'JOFV' SPECIFIED HERE IS DIFFERENT FIELD TYPE.

TRIGGER LOCATION OF EXCEPTION.

ROW 2847

MODULE NAME : START OF SELECTION.

SOURCE CODE EXTRACT FROM 2817 TO 2866.

REGARDS,

SELVA....

Read only

0 Likes
3,623

Hi,

I already told in that function module 'CALL TO THE FUNCTION MODULE '/1BCDWB/SF00000034' ' your passing the JOFV field?

in Import parameter or in table?

change the smartform declaration..

if your pass the value to Import parameter means change JOFV type as KWERT.

if your pass the value to table parameter means check table JOFV field declare as KWERT.

Regards,

Dhina..

Read only

0 Likes
3,623

Hi dhina,

sorry i left yesterday so earlier that's y couldn't reply u...

yeah dhina ...i changed the smartform declaration and also it is an import parameter.......i changed ln import parameter like jofv type kwert. and in report program also i changed like jofv type kwert...do i need to move to procution to see o/p...becs when i logged in to production to see the o/p...it doesn't come the same o/p which comes earlier...

so please tell me...

thanks & regards,

selva....

Read only

0 Likes
3,623

HI ,

wHILE DECLARING IN SMARTFORM

use T500C as reference table and wAERS as reference field

regards

Deepak.

Read only

0 Likes
3,623

Hi,

Did you move to production client? and check the changes is affected in the smartform. then give the same data and see the

output.


becs when i logged in to production to see the o/p...it doesn't come the same o/p which comes earlier...

what output your getting. instead of this 560.00 your getting correct output?

Regards,

Dhina..

Read only

0 Likes
3,623

Hi dhina,

I moved to production client... am getting runtime error dhina...dnt know what to do..this is the error am getting....

short text:

type conflict when calling a function module.

what happened?.

error in the abap application prgm.

the current abap prgm 'ymm_po_suj_new' had to be terminated bcs it has come across a statement that unfortuanately cannot be executed.

a fucntion module was called incorrectly.

what can you do?.

note down which actions and i/ps caused the error.

to process the prbm further contact your sap administrator.

using the transaction st22 for abap dump analysis, u can look at and manage termination messages and u can also keep them for a long time.

error analysis.

An exception occured that is explained in detail below

the exception which is assigned to class cx_sy_dyn_call_illegal_type' was not caught and therefore caused a runtime error.

the reason for the exception is

the call to the function module is "/1bcdwb/sf00000005" is incorrect.

the function module allows uto specify only the fields of a particular type under 'JOFV'.

the field JOFV is specified here is different field type,

HOW TO CORRECT THE ERROR.

if the error occured in ur own abap prgm. or in sap prgm u modified, try to remove the error.

if the error occured in ur non modified sap prgm, u may be able to find the interim solution in a sap note.

if u have acess to sap notes. carry out a search with the follwing keywords.

"call_function_conflict_type" ""cx_sy_dyn_illegal_type" "ymm_po_suj_new" or "ymm_po_suj_new". "start-of-page"

if u cannot solve the pbm and want to send the error notification to sap, include the following inforamtion.

1.the description of the current pbm(shrt dump)

to save the description choose system>list->save--->local file(uncovered).

2.corresponding system log

display the system log by caling transaction sm21.

restrict the time interval to 10 min befrand 5min after the shrt dump. then choose system->list->save?local file(uncovered)".

3. if the pbm occurs in the pbm of ur own or a m odified sap prgm:

the source code of the prgm in the editor>choose utilities>more utilitis>upload/download->download.

4. the details about the conditions under which the error has occured or which actions and i/ple to the error.

these are pbms...in showed in the runtime error...

regards,

selva..

Read only

0 Likes
3,623

Hi,

Login to PRD client go smartforms tcode give the smartform name choose smart_form->generate. then run the tcode.

Regards,

Dhina...

Read only

0 Likes
3,623

Hi dhina,

I have generated ...after i generated i executed in the same page...but it come like the function module /1bcdwb/sf000000005. and i displayed the one./..which again shows the runtime error.

regards,

selva...

Read only

0 Likes
3,623

Hi,

Please check in DEV client if your getting same Dump msg or not?

if your getting means your not change JOFV field type as KWERT. please change that and check once aging in dev client. then move to PRD.

Regards,

Dhina..

Read only

0 Likes
3,623

hi dhina,

In the data declaration this was the old which was declared..like JOFV LIKE PC207-BE2RG.

NOW I HAVE CHANGED LIKE JOFV TYPE KWERT.IN ABAP EDITOR...

IN SMARTFORM..--->FORM INTERFACE IT WAS GIVEN LIKE JOFV TYPE PC207-BE2RG. I HAVE CHANGED LIKE JOFV TYPE KWERT.

THIS WAS DONE AND SAVED...SO Do not ask for email addresses

done.,.,.

regards,

selva....

Edited by: Matt on Jun 22, 2011 2:33 PM

Read only

0 Likes
3,623

This message was moderated.

Read only

0 Likes
3,623

Hi dhina,

Thanks a lot..i have sent u my abap coding and my smartform print image where i have declared..please go through it and pleae let me know what has to be change...

regards,

selva...

Read only

0 Likes
3,623

Hi,

Did u got any idea?....are u busy ?...

regards,

selva..

Read only

0 Likes
3,623

Hi dhina,

Am getting the error in prd client... the dump error...i have sent to ur mail,...have a look dhina...y its happening like this...is there any procedure..to change and save first...becas i 1st changed in editor...and got the req no..and then i changed in smartform and saved it....then moved to production....

regards,

selva..

Read only

0 Likes
3,623

Moderator message: The publishing of email addresses is not permitted.

Edited by: Matt on Jun 22, 2011 2:34 PM

Read only

0 Likes
3,623

Moderator message: The publishing of email addresses is not permitted.

Edited by: Matt on Jun 22, 2011 2:35 PM

Read only

0 Likes
3,623

Hi dhina,

I contacted one of my senior consultant. Generally what he told was..

The type what we declared was JOFV TYPE KONV-KWERT.

TOFV(14).

THE CHARACTER WAS 15 AND DECIMALS 2...he told to write this one like

data: lv_test(15) type p decimals 2. i dnt know how to write this one in the correct format...

and where to include this... and also he told to change in grand total text...

regards,

selva..

Read only

0 Likes
3,623

This message was moderated.

Read only

0 Likes
3,623

Moderator message: The publishing of email addresses is not permitted.