Skip to Content

Removing an incompletion log for a sales order (VA42)

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 27, 2013 at 09:42 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

  • Posted on Dec 19, 2013 at 07:33 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.