cancel
Showing results for 
Search instead for 
Did you mean: 

Invoice cancelled on today date and delivery reversed done next date

Former Member
0 Kudos

Hi Experts

One of user cancelled Invoice on 21.02.2015 and delivery reversed done on 23.02.2015. Idealy it should done happened .

Is there anyway we can restrict user ,Delivery reverse will happen before or equal to 21.02.2015.

Do we have any copy control setting

Accepted Solutions (0)

Answers (2)

Answers (2)

bsivasankarreddy_reddy
Active Contributor
0 Kudos

Dear Pawal

go to SMOD t code

here enter the enhancement  V50PSTAT  click on display next click on components  then double click on functional module(EXIT_SAPLV50P_001) here you find include  ZXV50U07

double click on include  ZXV50U07 create  and write below logic

data :  wrk_vbeln TYPE vbrk-vbeln,

           wrk_fkdat  TYPE vbrk-FKDAT.

SELECT SINGLE vbeln INTO wrk_vbeln FROM vbfa

        WHERE vbelv = is_lips-vbeln

          AND vbtyp_n = 'N'.

     SELECT SINGLE fkdat INTO wrk_fkdat FROM vbrk

       WHERE vbeln = wrk_vbeln.

   IF  IS_LIKP-WADAT_IST  NE wrk_fkdat.

       IF sy-subrc = 0.

       MESSAGE 'Reverse not possibel change date' TYPE 'E'.

       LEAVE TO CURRENT TRANSACTION.

       endif.

  ENDIF.

JL23
Active Contributor
0 Kudos

are you talking about inbound or outbound process? In case of outbound I will move it to SD forum

Former Member
0 Kudos

Sorry it an Outbound delivery it should move into SD

Thanks Jurgen for correct me.

former_member211108
Contributor
0 Kudos

Hi Piwal,

You can mention the posting date in Vl09.

Hope this will help you.

Thanks and Regards

Atulkumar Dagade

Former Member
0 Kudos

Hi Atul

In VL09 defualt date determined as current date user by wrongly updated the Delivery.

Normal when user reversed the delivery he define date as Billing cancellation date

My question is that do we can restrict to reversed the delivery

former_member211108
Contributor
0 Kudos

May be you can create the Z transaction and call the bapi for invoice cancellation and reverting the good issue in one go.

Thanks and Regards

Atulkumar Dagade

bsivasankarreddy_reddy
Active Contributor
0 Kudos

dear piwal

you can write logic

include: ZXV50U07

Write logic based on your requirement.