Skip to Content

How set parameter id when VA01 create order with reference number

I have tried to use parameter id AUN, but It doesn't work.

How set parameter id  when VA01 create order with reference number ( contact number ) ??

DATA: LV_DOC_TYPR TYPE AUART VALUE 'OR',
           LV_CONTRACT  TYPE VBELN VALUE '0040001561'.

   SET PARAMETER ID 'AAT' FIELD LV_TYPE.
   SET PARAMETER ID 'AUN' FIELD LV_CON.


CALL TRANSACTION 'VA01' AND SKIP FIRST SCREEN.
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jan 02, 2015 at 09:11 AM

    Hi,

    As per my information, to create a Order, you have to pass a Order Type first (due to Mandatory Information).

    And after that you have to Select the "Create With Reference" Tool from the Tool bar,

    There you have to pass the Reference Order No.

    As per the your code, it will not work.

    You have to create a BDC program where you have to pass the Order type and then in reference window, you have to pass the Ref Order No. and then you have to display the next screen to user to do the changes on the document window.

    Regards.

    Praveer.


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 02, 2015 at 07:48 AM

    Hi,

    Do you want to pass the below contract value as referece?if yes then where you are passing this value?
    LV_CONTRACT  TYPE VBELN VALUE '0040001561'

    Please explain in detailed.

    Thanks,

    Sree

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 02, 2015 at 08:54 AM

    DATA x type vbrk-vbeln.

    x = '0040001561'.

    SET PARAMETER ID <'Revelent Memory id '> FIELD X.

    CALL TRANSACTION VA01 AND SKIP FIRST SCREEN.

    Regards

    Shailendra Karada

    Add comment
    10|10000 characters needed characters exceeded