Application Development and Automation 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: 
Read only

unloading point query

Former Member
0 Likes
598

Hi all,

I want to assign a delivery address and unloading point to a purchase requistion i got the delvery address but iam not able to figure out the unloading point.

I want you guys to let me know from which table i have to retrieve the unloading point and assign to which part of BAPI.

Iam sending my code please take a look at it and let me know if iam wrong any where and what i need to add for unloading point.

data: begin of itab_bapiebkn occurs 100.

include structure bapiebkn.

data: end of itab_bapiebkn.

data : I_BAPIMERQADDRDELIVERY TYPE TABLE OF BAPIMERQADDRDELIVERY,

W_BAPIMERQADDRDELIVERY TYPE BAPIMERQADDRDELIVERY.

w_quantity = itab-multiple * itab-bstrf.

w_item_no = w_item_no + 1.

itab_bapiebanc-preq_item = w_item_no.

itab_bapiebanc-doc_type = c_doc_type.

itab_bapiebanc-created_by = sy-uname.

itab_bapiebanc-material = itab-matnr.

itab_bapiebanc-plant = itab-werks.

itab_bapiebanc-quantity = w_quantity.

itab_bapiebanc-deliv_date = sy-datum + 1.

itab_bapiebanc-trackingno = w_bednr.

append itab_bapiebanc.

w_bapimerqaddrdelivery-PREQ_ITEM = w_item_no.

IF S_GROUP = '2'.

SELECT SINGLE * FROM TVARV WHERE NAME EQ 'ZGRP1'.

IF SY-SUBRC EQ 0.

SELECT SINGLE ADDRNUMBER FROM ADRC INTO w_bapimerqaddrdelivery-ADDR_NO

WHERE ADDRNUMBER = TVARV-LOW.

ENDIF.

Thanks in advance

Suchitra

3 REPLIES 3
Read only

Former Member
0 Likes
495

Hi,

you want the unloading to be assigned for each material right.

swathi

Read only

Former Member
0 Likes
495

Hi can anybody let me know the solution for my problem.

suchitra

Read only

Former Member
0 Likes
495

I believe you are looking for VBPA-ABLAD for the ship-to party.