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

posting order confirmation

animesh_kumar2
Active Participant
0 Likes
1,249

Hi all,

I need to post purchase order confirmation thorough portal. Can anyone tell me is there any function module/BAPI to post this. idoc_input_ordersp is there but what are the required parameters and how the idoc will be filled i dont know.

Thanks in advance.

Regards,

Animesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
977

Hi Animesh,

You can use FM :

"ME_CONFIRMATION_UPDATE" to insert confirmation data directly to table "EKES".

Please be sure before calling this function Po confirmation key "EKPO-BSTAE" is populated .

Hope this may help you.

Regards,

Lanka

Hi all,

I need to post purchase order confirmation thorough portal. Can anyone tell me is there any function module/BAPI to post this. idoc_input_ordersp is there but what are the required parameters and how the idoc will be filled i dont know.

Thanks in advance.

Regards,

Animesh

4 REPLIES 4
Read only

Former Member
0 Likes
978

Hi Animesh,

You can use FM :

"ME_CONFIRMATION_UPDATE" to insert confirmation data directly to table "EKES".

Please be sure before calling this function Po confirmation key "EKPO-BSTAE" is populated .

Hope this may help you.

Regards,

Lanka

Read only

0 Likes
977

Hi lanka,

This module is working fine but is it a good idea to update the tables directly. What are its consequences on other tables.

Thanks & regards,

Animesh

Read only

0 Likes
977

Hi Animesh,

There is no issue with other tables as Confirmationas were stored in EKES table.

Please allocate points if any answers helpful to you. this will encourage all of us.

Lanka

Read only

0 Likes
977

Hello, I used ME_CONFIRMATION_UPDATE to insert new line in EKES. It worked but the issue is, I did no pass ETENS(Seq. no.) while inserting and now this field is initial in the EKES. Now, I'm getting dump in ME23N = BIT_OFFSET_NOT_POSITIVE at below code. I tried updating & deleting this record from EKES using the same FM but before it goes to update/delete, it performs below check and gets DUMP.

How can I fix it now? I mean, How to delete this entry or update the value from 0000 to 0001. Please Help.

------------------------------------------------------

* set bitmask by providing ETENS

*--------------------------------------------------------------------

METHOD set_etens.

define local data object   DATA lv_byte TYPE x LENGTH 1. 

SET BIT iv_etens OF me->mv_bitmask.    ==>> DUMP at this line because iv_etens = 0000 which is less than 1

IF sy-subrc EQ 0.       RETURN.     ENDIF. 

DO.     CONCATENATE me->mv_bitmask lv_byte             INTO me->mv_bitmask IN BYTE MODE."unicode   

SET BIT iv_etens OF me->mv_bitmask.   

CHECK sy-subrc IS INITIAL.       EXIT.                    

   "from do   ENDDO.   ENDMETHOD.              

   "set_etens ---------------------------------------------------------------------- >

- Sonal