cancel
Showing results for 
Search instead for 
Did you mean: 

First line in Delivery Address

Former Member
0 Kudos

Hi,

I have a problem with the first line of the delivery address on PO output.

The delivery address used on POs is Internal Address. The first line of the Internal address used on the PO output is <b>Name1</b>.

But the text in the field <b>Name 1</b> is taken from the field <b>Object Abbriviation</b> from the Organizational Hierarchy (ppoma_bbp).

I dont want this line in the delivery address on the Output.

How can I remove this line, or how can I change the field Name1?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

The smartform BBP_PO is called in this case. There you need to make the necessarymodification in the Delivery Address window, and code your logic accordingly.

<b>Related links -></b>

Do let me know.

Regards

- Atul

Former Member
0 Kudos

Hi Atul,

I know that it is in the smart form. We have made a custom smart form that we use.

The delivery address data is setup as in the standard BBP_PO.

Type <b> Organizational Address (1)</b>

Address Number <b>&SHIP_TO_HEAD-ADDR_NO&</b>

But have anyone expirenced the problem I describe, and do they have a solution for it?

I have tried setting up the Priorty of lines, but it doesn't seem possible to get rid of this problem that way?

Former Member
0 Kudos

Hi

Look for the Program logic maintianed in the Smartform window.

Inside SHIP_TO_HEAD structure, the data is fetched in the Global Setting section in smartforms transaction ( - Inside Global Definitions section).



*same for ship-to party
READ TABLE sf_po-ship_to INTO ship_to_head INDEX 1.
IF sy-subrc = 0.
  ship_to_unique = 'X'.
  LOOP AT sf_po-ship_to
  INTO ls_partner
  WHERE partner_no NE ship_to_head-partner_no OR
        addr_no    NE ship_to_head-addr_no    OR
        pers_no    NE ship_to_head-pers_no.
    CLEAR ship_to_unique.
    EXIT.
  ENDLOOP.
ENDIF.

Here you need to change the logic as per your bsiness requirement.

Hope this will help.

Regards

- Atul