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

post key value

former_member630092
Participant
0 Likes
881

how to decide posting key for negative valuies and for positive values

and who will decide this

i have to assign minus sign to value for posting key say 21.

how can i do that. is it like this ?

{if itab-BSCHL = '22'.

concatenate '(-)' amount into itab-amount .

condense itab-amount no-gaps .

itab-WRBTR = itab-WRBTR * -1 .

endif.}

please reply

6 REPLIES 6
Read only

RahulKeshav
Active Contributor
0 Likes
843

Hi,

I dont think you can assign the sign to the amount for the posting key...

Posting keys are divided into Debit and Credit Indicator...

So system automaically take the sign of the amount from the Posting key you have selected.

You can try Txn FB01...there you cannot give the amount in negative...it should be positive but after posting u can see the differnece...

it depends on the posting key ....

exactly for what purpose you r looking posting key...

Thnx

Rahul

Edited by: Rahul Keshav on Aug 26, 2009 5:36 PM

Read only

Former Member
0 Likes
843

Hi ,

Use Debit credit indicator for identifying sign

i.e. H credit.

S Debit.

Regards,

Vijay

Read only

Former Member
0 Likes
843

Hi Ravi,

Functioanl guys can help you regarding the posting key logic, try consulting them.

Regards

arun

Read only

Former Member
0 Likes
843

HI,

There is a field SHKZG for debit credit indicator. values( 'S' or 'H').

Write condition on that field, you can mark sign to the values.

Regds,

Anil

Read only

RahulKeshav
Active Contributor
0 Likes
843

any break thru..

Read only

former_member630092
Participant
0 Likes
843

Answered