Application Development 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: 

Modifying a record in LTAP table.

Former Member
0 Kudos
989

Hello experts!

Is there any FM/BAPI that could be used to modify table LTAP?

The thing is, before confirming the SU, I had to modify its Batch, Quantity and Storage unit.

3 REPLIES 3

Former Member
0 Kudos
248

Hi,

Try these :

L_TO_CREATE_DN

&

L_TO_UPDATE_PREPARE

Thanks & regards.

0 Kudos
248

Hi Anusha

Thanks for the reply.

If I'm not mistaken, FM L_TO_CREATE_DN is for creating a TO while FM L_TO_UPDATE_PREPARE is used by the standard program to update the TO when it is confirmed.

What I'm looking for is a stand alone FM/BAPI that updates the details of an uncomfirmed TO (LTAP).

0 Kudos
248

Is it safe to update table LTAP directly thru UPDATE command?

I was planning to change the SU directly of an unconfirmed TO if ever I don't find any FM/BAPI to do the job.

Other possible updates are the batch (CHARG) and the source target quantity (VSOLA) before I confirm the TO.

Here is the actual plan.

1. Update TO (table LTAP) with the details of the new SU such as:

a. Replace LTAP-VLENR with new SU.

b. Replace LTAP-VSOLA with Pallet full quantity (LQUA-VERME) if field VOLLE of table T331 is u201CActiveu201D.

c. Replace LTAP-CHARG with the Batch of the new SU (LQUA-CHARG) if it is different.

2. Update Transfer Requirement Item batch number (LTBP-CHARG) if ever the batch of the TO (LTAP-CHARG) is updated as well.

3. Confirm TO.