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

item total in smartforms

Former Member
0 Likes
783

Hi everybody

the problem i am facing is i am able to get the item total corectly in devlopment server but the logic ic not working in production server .can suggest me how proceed so that the same logic works well in production server also. The coding i used is as below.

regards

venkat

LOOP AT I_VBRK where VBELN = G_VBELN.

IF SY-SUBRC = 0.

G_NETWR1 = I_VBRK-NETWR.

G_KWERT = I_VBRK-MWSBK.

T4 = G_KWERT.

CONCATENATE '-' T4 INTO T4.

CONDENSE T4 NO-GAPS.

T3 = G_NETWR1.

CONCATENATE '-' T3 INTO T3.

CONDENSE T3 NO-GAPS.

ENDIF.

G_KWERT_TOT = G_NETWR1 + G_KWERT.

T5 = G_KWERT_TOT.

CONCATENATE '-' T5 INTO T5.

CONDENSE T5 NO-GAPS.

ENDLOOP.

Hi everybody

the problem i am facing is i am able to get the item total corectly in devlopment server but the logic ic not working in production server .can suggest me how proceed so that the same logic works well in production server also. The coding i used is as below.

regards

venkat

LOOP AT I_VBRK where VBELN = G_VBELN.

IF SY-SUBRC = 0.

G_NETWR1 = I_VBRK-NETWR.

G_KWERT = I_VBRK-MWSBK.

T4 = G_KWERT.

CONCATENATE '-' T4 INTO T4.

CONDENSE T4 NO-GAPS.

T3 = G_NETWR1.

CONCATENATE '-' T3 INTO T3.

CONDENSE T3 NO-GAPS.

ENDIF.

G_KWERT_TOT = G_NETWR1 + G_KWERT.

T5 = G_KWERT_TOT.

CONCATENATE '-' T5 INTO T5.

CONDENSE T5 NO-GAPS.

ENDLOOP.

6 REPLIES 6
Read only

FredericGirod
Active Contributor
0 Likes
732

Hi,

Why did you use a "If sy-subrc .." in a Loop statement ? The result of your sy-subrc will always be 0 !

Why do you use a concatenate '-' ? you can't make simply a g_kwert = - g_kwert ?

What are the type and length of your data ?

Rgd

Frédéric

Read only

0 Likes
732

Hi Fredric

before i used read table instead of loop at then it worked fine in dev server but not in production server

so i thought if i change it to loop at it will work fine but it did not could u plz suggest

regards

venkat

Read only

0 Likes
732

Hi Fredric

can u suggest me how to solve this problem if there is a problem in code

regards

venkat

Read only

Former Member
0 Likes
732

HI Venkat,

If it is working properly in one server, there must be some problem in your transport request.

Try to re release your transport.

Regards,

Ravi

Read only

0 Likes
732

Hi Ravi

just 30mins back i transported the request , i recieved mail from onsite saying its not working fine in production server please suggest

Your answers always helped me

regards

venkat

Read only

0 Likes
732

Venkat,

Attach all the objects concerned into a new tr. request and retranport them in the PRODUCTION server.

regards,

Ravi