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

in badi

Former Member
0 Likes
728

I have a situation where I have to copy external HU no.( VEKP-EXIDV ) to SU no. (LEIN-LENUM) within a badi DELIVERY_PUBLISH.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
593

Hi

If you solved your problem

could you tell me how could I customise HU Type of External Handling Unit Identifier that Indicates how the external handling unit identifier is determined?

ed

I have a situation where I have to copy external HU no.( VEKP-EXIDV ) to SU no. (LEIN-LENUM) within a badi DELIVERY_PUBLISH.

2 REPLIES 2
Read only

Former Member
0 Likes
594

Hi

If you solved your problem

could you tell me how could I customise HU Type of External Handling Unit Identifier that Indicates how the external handling unit identifier is determined?

ed

Read only

Former Member
0 Likes
593

Hi,

Methods of this BADI don't have any parameters and documentation(<b>OSS note 787285</b>) but anyway you can get delivery number using well-known trick:

METHOD if_ex_delivery_publish~publish_after_save.

CONSTANTS:

c_program_variable(32) TYPE c VALUE '(SAPMV50A)XLIKP'.

FIELD-SYMBOLS:

<fs_symbol> TYPE ANY.

ASSIGN (c_program_variable) TO <fs_symbol>.

DATA:

likpvb_val TYPE likpvb,

vbeln_val TYPE likp-vbeln.

likpvb_val = <fs_symbol>.

vbeln_val = likpvb_val-vbeln.

  • your READ_TEXT logic for delivery vbeln_val

ENDMETHOD.

<b>*Reward points</b>

Regards