Skip to Content
author's profile photo Former Member
Former Member

smart form.....item consignee

for order confirmation....

in va03 transaction when for header level ship to party is diff to line item level ship to party we mention item consignee i.e is we mention ship to party details

for that particular line item in smart form(main window) ,we also display header

level ship to party in smart form but in case when for particular line item

ship to party is different from header level ship to party(special case) we mention

ship to part details for that line item explictly in main window.

posnr matnr description quantity unit price amount

10 ch-1000 sap 10.0 25 250

20 ch-100 sap 1 30 30

like for line item 20 ship to party details are diff than header than with 20 item no we also write its ship to part details.

there is standard form RVADOR01.

in this form we have place where ship to party is checked *****

FORM DIFFERENT_CONSIGNEE.

CHECK VBDKA-NAME1_WE NE VBDPA-NAME1_WE

OR VBDKA-NAME2_WE NE VBDPA-NAME2_WE

OR VBDKA-NAME3_WE NE VBDPA-NAME3_WE

OR VBDKA-NAME4_WE NE VBDPA-NAME4_WE

OR VBDKA-STRAS_WE NE VBDPA-STRAS_WE

OR VBDKA-PFACH_WE NE VBDPA-PFACH_WE

OR VBDKA-PSTLZ_WE NE VBDPA-PSTLZ_WE

OR VBDKA-PSTL2_WE NE VBDPA-PSTL2_WE

OR VBDKA-ORT01_WE NE VBDPA-ORT01_WE

OR VBDKA-PFORT_WE NE VBDPA-PFORT_WE

OR VBDKA-LAND1_WE NE VBDPA-LAND1_WE.

CHECK VBDPA-NAME1_WE NE SPACE

OR VBDPA-NAME2_WE NE SPACE

OR VBDPA-NAME3_WE NE SPACE

OR VBDPA-NAME4_WE NE SPACE

OR VBDPA-STRAS_WE NE SPACE

OR VBDPA-PFACH_WE NE SPACE

OR VBDPA-PSTLZ_WE NE SPACE

OR VBDPA-PSTL2_WE NE SPACE

OR VBDPA-ORT01_WE NE SPACE

OR VBDPA-PFORT_WE NE SPACE

OR VBDPA-LAND1_WE NE SPACE.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = 'ITEM_CONSIGNEE'

EXCEPTIONS

ELEMENT = 1

WINDOW = 2.

IF SY-SUBRC NE 0.

PERFORM PROTOCOL_UPDATE.

ENDIF.

ENDFORM.

as VBDPA and VBDKA are structure fields ,,,how do i do check inmy program..

if any one has implemented the same plz guide

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 02:07 PM

    Mitesh,

    Declare 2 variables in the form interface for ship-to-party header and ship-to-party item.

    Get Ship-to-party header & item values from VBAK & VBAP tables and pass those variables to the Smartform Function module parameters.

    <b>Reward Points if this helps,</b>

    Satish

    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.