cancel
Showing results for 
Search instead for 
Did you mean: 

Returns billing

Former Member
0 Kudos

Dear Experts,

I have situation where I could do Returns billings more than what I have originally billed.

To put it with an example:

I have Invoiced a material with a qty of 100, and with reference to the Billing, I have raised the Return sales order for the same 100 qty and billed the Returns. When I tried to raise another Return sales order with reference to the original billing, system sends a warning message that "100 quantities have been billed" but still system allows me to raise the return sales order and do returns billing.

Where did I miss the configuration? kindly help, thanks in advance.

Regards,

Vijay N

Accepted Solutions (1)

Accepted Solutions (1)

jignesh_mehta3
Active Contributor
0 Kudos

Hello VIjay,

I think this was discussed couple of months back.

You will have to go for enhancement & apply a User Exit in MV45AFZZ, which will check for the Returns Order created with reference to Billing Document & then give error message.

Another frequently suggested option is to change the Warning message to Error message, but this is not at all recommended for SAP Standard messages.

Thanks,

Jignesh Mehta

Former Member
0 Kudos

Hi Mr. Jignesh,

Can you please guide me through on where to change the warning message to error message? Thanks in advance.

Regards,

Vijay N

Answers (3)

Answers (3)

bsivasankarreddy_reddy
Active Contributor
0 Kudos

hi

one thing  you can do ,i am done the  same requirement,

i can you use the routine ,

go to vtaf

here item routine Copying requirements routine can add some thing ,

here 303 routine can copy and crate new routine

below logic

FORM BEDINGUNG_PRUEFEN_901

  USING BP_SUBRC.

DATA : w_kwmeng TYPE vbap-kwmeng.

  bp_subrc = 0.

  SELECT SUM( kwmeng ) FROM vbap INTO w_kwmeng

  WHERE vgbel = vbrp-vbeln AND vgpos = vbrp-posnr.

  IF sy-subrc = 0.

    IF vbrp-fkimg LE w_kwmeng.

      bp_subrc = 1.

     ELSE.

      bp_subrc = 0.

     ENDIF.

  ENDIF.

ENDFORM.

when write and this routine assign to  Copying requirements routine ,

then you will check,

when you copy the second time return same billing document , on that time it will sows nil quantity at sale order level,.

please check  and conform

Former Member
0 Kudos

Thank you Mr. Jignesh, Mr. Reazuddin and Mr. Bojja.

Will try the routine suggested by Mr. Bojja and get back. Thanks everyone.

Regards,

Vijay N

reazuddin_md
Active Contributor
0 Kudos

Hello Vijay,

Its standard behaviour. If you dont want the system to allow, then the change message type.

Tx:OVAH

Tx:OBMSG

Regards,

Reazuddin MD

bsivasankarreddy_reddy
Active Contributor
0 Kudos

Hi

when you raise the second time return order same billing document , system through one message all ready copy the 100 quantity, when so this message so can not done the return order , because you all ready done the billing quantity return ,

system once through message , you identify this billing all ready return.

system allow the second return it standard behavior, you can not stop the copy quantity.