Application Development 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: 

Removing an incompletion log for a sales order (VA42)

tumbov_dimce
Explorer
0 Kudos

Hi all,

I have a problem with the incompletion log of a sales order.

I'm copying the contract over BAPI_SALESDOCUMENT_COPY, modifying some fields, saving,  and at the end the s.o. becomes incomplete. In all of the items, there is same message in the incompletion log - "Missing Data: Configuration". So if I do it manually, I don't need to maintain any fields. I only need to jump into the configuration of the sales order and exit it. Afterwards, I can save it, and the s.o. is complete.

How do I achieve this per ABAP?

I already tested the workaround under but it doesn't work for all s.o. For some of them, although I'm deleting the content of the int.tab. XVBUV, the s.o. is still incomplete.

The source contract, which I'm copying from is complete.

Cheers,

Dimce

1 ACCEPTED SOLUTION

Flavio
Active Contributor
0 Kudos

Hi Dimce,

As far as saving the s.o. item configuration is concerned, you may have a look at the OSS note 562124 that has a nice example (program) for achieving it.

Hope this could be of some help.

With best regards,

Flavio

6 REPLIES 6

Jelena
Active Contributor
0 Kudos

Instead of copying try to create with reference (e.g. BAPI_SALESDOCU_CREATEFROMDATA, not sure if it's the right one for the contracts). It's possible to enter a referenced document and configuration in the creation BAPI.

0 Kudos

Hi Jelena,

unfortunately this is already a finished program, so switching it to BAPI_SALESDOCU_CREATEFROMDATA would cost a lot of time.

Why actually it doesn't work with the SAP-standard program SDVBUK00?

Dimce

Flavio
Active Contributor
0 Kudos

Hi Dimce,

As far as saving the s.o. item configuration is concerned, you may have a look at the OSS note 562124 that has a nice example (program) for achieving it.

Hope this could be of some help.

With best regards,

Flavio

0 Kudos

Hi Flavio,

thank you for your help. I took a look into the OSS note, but I will need some time to test it.

I will update the post as soon as I have tested it.

Kind Regards,

Dimce

0 Kudos

Hi again Flavio,

I tested out the program from the SAP note 562124, but it is not that what I need. It modifies the values in the sales order item configuration.

What I need is a simulation of the "Complete Data" button from inside the incompletion log. In the VA42 when I pres "Complete Data", then no further user entries are required. There is only a pop-up message, which I need to confirm and then the screen with the item configuration data appears. But then I press F8 and the contract is complete.

Kind Regards,

Dimce

0 Kudos

Hi all,

I have found the solution for my problem. It's in the note "1882174 - Configuration incomplete after you create with reference". But I had to make a small correction of the suggested code correction, namely to outcomment the following line:

"not hvbap-cuobj is initial"

so my final code in the FV45SFCO_CONFIGURATION_PROCES1 looks like this:

if not vbap-uepos  is initial      and

     not vbap-stlnr  is initial      and    "UPOS aus Stückliste

     "not hvbap-cuobj is initial      and    "Hpos must be configurable

      hvbap-cuobj is initial      and    "Hpos must be configurable

         kopieren    ne space        and

         tvcpa-auarn ne space        and

         ( ( vbak-vbtyp  na vbtyp_retour and

             vbak-vbtyp  na vbtyp_anfo   and

             not ( vbak-vbklt = vbklt_rech_korr and

                   vbap-shkzg eq charx ) )  or

            ( tvcpa-copy_con = chara and

              ( vbak-vbtyp  ca vbtyp_retour or

                vbak-vbtyp  ca vbtyp_anfo or

                ( vbak-vbklt = vbklt_rech_korr and

                   vbap-shkzg eq charx ) ) ) ).

Cheers,

Dimce