Skip to Content
avatar image
Former Member

LSMW for VA42 using direct Input Method- RVINVB10

VA42 LSMW using Direct Input - RVINVB10

Hi ,

I am trying to update sales contract using LSMW direct input method. I am using program RVINVB10 in LSMW. But for some reason this program is considering it as create and not update. I am getting error which says object not in the allowed number range. When i debugged i understood it is becuase program is going for create option. Has any one used this program to update sales contract.

As a alternate solution I tried to do recording. For VA42 screen when I do recording, when i Open the document for edit by default the cursor is on the items table. It is only the first empty line on the item table. When i save this recording and try to rerun it again , this cursor statement is causing issue. Since the item number is hardcoded on it.

BDC_CURSOR RV45A-MABNR(04)

I dont find a way to avoid this from recording.

Can some one please help me on this?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 02, 2017 at 09:39 PM

    RVINVB10 has a documentation available. It does not say anything about updating existing documents. It clearly says "With this program, you can copy sales documents into the SAP system from external systems." This implies creating new documents.

    It's rather unusual to use LSMW to update documents. It was meant mostly as a migration tool, to create some data.

    What exactly are you trying to update and why?

    P.S. "Change Sales Orders" is a tag for Fiori application, the right tag for this would be "Sales (SD)".

    Add comment
    10|10000 characters needed characters exceeded