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

Batch input for transaction HU02

Former Member
0 Likes
1,329

Hello,

Is there someone who can tell me if it is possible to execute a batch input on HU02 ?

I tried it with this little piece of code but it doesn't work.


PERFORM bdc_dynpro      USING 'SALV51G'     '6000'.
PERFORM bdc_field       USING 'BDC_OKCODE'  '=UE6POS'.

CALL TRANSACTION 'HU02' USING bdcdata
                              MODE     'A' "p_modus
                              UPDATE   p_update
                              MESSAGES INTO bdcmess.

I am getting the first screen but the popup with the code doesn't appear ?

Can anyone give me a clue ?

Thanks in advance,

Dirk.

Hello,

Is there someone who can tell me if it is possible to execute a batch input on HU02 ?

I tried it with this little piece of code but it doesn't work.


PERFORM bdc_dynpro      USING 'SALV51G'     '6000'.
PERFORM bdc_field       USING 'BDC_OKCODE'  '=UE6POS'.

CALL TRANSACTION 'HU02' USING bdcdata
                              MODE     'A' "p_modus
                              UPDATE   p_update
                              MESSAGES INTO bdcmess.

I am getting the first screen but the popup with the code doesn't appear ?

Can anyone give me a clue ?

Thanks in advance,

Dirk.

5 REPLIES 5
Read only

christian_wohlfahrt
Active Contributor
0 Likes
938

Hi Dirk!

You should better concentrate on Bapi instead of CT:

BAPI_HU_CHANGE_HEADER

BAPI_HU_CREATE

BAPI_HU_DELETE

BAPI_HU_DELETE_FROM_DEL

BAPI_HU_DISPLAY_HISTORY

BAPI_HU_GETLIST

BAPI_HU_GET_LIST_MSG

BAPI_HU_PACK

BAPI_HU_PROCESS_MSG

BAPI_HU_PROCESS_MSG_DIRECT

BAPI_HU_REPACK

BAPI_HU_UNPACK

BAPI_HU_PI_CHANGE

BAPI_HU_PI_CREATE

BAPI_HU_PI_READ

Some should definitely be able to solve your problem.

Regards,

Christian

Read only

Former Member
0 Likes
938

Set unique number assignment for HU identification in Customizing (SPRO) first.

In SPRO you need to just select the check box - HU ID as unique number .

After this configuration I think you can use BDC.

Rgds,

TM.

The SPRO settings comes under <b>Handling Unit Management</b>. Search for this term for locatiing.

Message was edited by: Thomas Mann

Read only

0 Likes
938

Hi Christian and Thomas,

The number assignment is set to unique for HU,

The problem is that i am using FM ADD_TO_EXISTING_HU.

This FM returns with subrc = 0, but the source HU is not copied to the dest HU, it keeps hanging in his unpacked state.

That is why i am trying to solve it by means of BT.

I don't see a BAPI that can replace that FM.

Regards,

Dirk.

Read only

0 Likes
938

Dirk,

Did you get a chance to look into reports which uses this function module?

I checked, unfortunately I do not have valid configuration. Can you have a look.

<b>RLMOB018

RLMOB019

RLMOB020</b>

Rgds,

Thomas.

Message was edited by: Thomas Mann

Read only

0 Likes
938

Hi Thomas,

I also can't run the reports completely beacuse of configuration problems.

By looking at the code i can't see any differences between those reports and my call of the FM.

Regards,

Dirk.