cancel
Showing results for 
Search instead for 
Did you mean: 

User Exit for payment term

Former Member
0 Kudos

Hi Friends

how to write the User Exit for Payment terms at Item Level. Any Sample User Exits can help me if no exact User Exit Is there

User Exit Name : USEREXIT_MOVE_FIELD_TO_VBKD

Thanks in Advance.

Regards

sahiti

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In which transaction you want this exit and what is the requirement ?

Can you explain bit furthur ?

The exit you have mentioned is at sales order level ,what exactly you want to do?

Regards,

Amrish Purohit

Message was edited by:

AMRISH PUROHIT

Former Member
0 Kudos

Hi Amrish

First of all thanks for the reply. i need this for the transaction VA02. actually the payment terms can be at header or item

i want to write a User Exit for payment term at Item Level as different items should result in different payment terms.

if you are not clear with the question plz let me know.

Regards

Sahiti

Message was edited by:

sahiti reddy

Former Member
0 Kudos

Hi Dear,

I am still not clear why you need exit for this,the payment can be different at item level in sales order.

As I understand is it is getting copied from customer master and you can overwrite it at item level in sales order.It is a open field.

The only issue will come at time of billing when tre will be invoice split because of different Payment terms

Have you taken taht into consideration ?

Reward points if useful

Regards,

Amrish Purohit

Former Member
0 Kudos

Hi Amrish.

thanks again.

Hear is the complete ticket which i got from the client.

1. User exit in Program MV45AFZZ

User Exit Name : USEREXIT_MOVE_FIELD_TO_VBKD.

create an include first - and then add the statements to that include..

this way when there is a patch or an upgrade - we need to only type the include statement and not the extire userexit.

2. External Table Specifications:

the table is client dependent

table name: zpaymentterm.

client(keyfield)-mandt

sales org(key)vkorg

sales Doc-(key)auart

material Grp-Matkl

cust:kunnr

Payment term (zterm) : ijput field in table maintenance

3. select from the ztable using vbak-vkorg/vbak-auart/vbap-matkl/vbak-kunnr is equal to zztable fields.

move corresponding zztable-zterm to vbkd-zterm.

4. Validations: if no entry found in ztable then payment term from the customer master should be copied in the document.

5. Create the maintenence view for the table and assigned with Transaction Code.

Thanks in advance.

Sahiti.

Former Member
0 Kudos

Hi,

So as I understand from this is in your project the Z table is used to maintain the payment terms.So for thr given combination if the entry is found in Z table then the value for payment term is getting updated to VBKD (Bussiness data) with the Z table field and not with KNVV (Customer master payment term)

If the enter is not maintained in Z table then VBKD is updated with KNVV entry.

So where is the question of item level payment terms ?

You just need to wwrite the code in exit

Correct me if my understanding wrong

Reward points if useful

Regards,

Amrish Purohit

Former Member
0 Kudos

Hi Amrish

Sorry that i misguided you as i am new in the job i dont have that much funtional knowledge so i fail to explain it properly.

anyway this is what i need as you explained.

Regards

Sahiti

Former Member
0 Kudos

Hi Sahiti,

That is ok dear

Now anything else you want from me ?

As I told you the exit you have to use is as mentioned earlier.

In this exit you can write the desired code with help of your ABAPer.

Create a Z table with fields given to you.Ask your ABAPer to give maintaince view for this Z table.

In the exit explain him the logic you will need as already explained.

Your role is just give specification to ABAPer and do testing

Anything else plz ask for it !

Reward points if useful

Regards,

Amrish Purohit

Former Member
0 Kudos

Hi

Thanks all i understood and if you can help me with the logic in the exit it will be a great help for me as it is deadlined for tomorrow and i need to write the logic. sorry that i am disturbing you. anyway if you cant also no problem and anyway thanks for all your responces. i had created the ztable and all i need now is logic in the exit. if you are busy no problem carry on with your work. anyway once gain thanks for all your help.

Regards

Sahiti

Message was edited by:

sahiti reddy

Former Member
0 Kudos

Hi Sahiti,

I will do that for you dear

Read vbak-vkorg /vbak-auart / vbap-matkl / vbak-kunnr.

Input this values to Z table (Z***) If entry of payment term is found against this combination then reset VBKD - ZTERM with your Z table PAYMENT TERM entry

Reward full points this time and close the thread

Enjoy

Regards,

Amrish Purohit

Former Member
0 Kudos

Sorry Still the post is open.

Read vbak-vkorg /vbak-auart / vbap-matkl / vbak-kunnr.

Input this values to Z table (Z***) If entry of payment term is found against this combination then reset VBKD - ZTERM with your Z table PAYMENT TERM entry

when i am inputing the read values how do i get the zterm value to ztable.

and one more thing i had to write this in one include program is it right.

Sahiti

Former Member
0 Kudos

Hi,

If you wish to keep it open I don't mind at all

In the Z table you will be maintaining some entry against this combination Right ? so pick that entry.

In one include,yes you are right

The include for the mentioned userexit !

Regards,

Amrish Purohit

Former Member
0 Kudos

Sorry for disturbing you all the time:

Anyway thanks for the help.

now i am done ith it.

Regards

Sahiti

Answers (0)