Process Order Change function module in 4.6B
I'm used to working in >= 4.6C where we have a plethora of BAPIs available.
Is there a function module in 4.6B to modify process order header and items ?
Thanks,
Roger
Hi Purnima,
Try the code like below.
FUNCTION ztest440.
""Local Interface:
*" IMPORTING
*" REFERENCE(IM_BANKKEY) TYPE BANKL
*" REFERENCE(IM_BANKACTNO) TYPE BANKN
*" EXPORTING
*" REFERENCE(EX_IBGBANKACCT) TYPE CHAR16
*" REFERENCE(E_ERRORMSG) TYPE CHAR20
DATA : im_bankcd TYPE char4.
im_bankcd = im_bankkey+0(4).
IF im_bankcd EQ '7339' OR
im_bankcd EQ '7232'.
ex_ibgbankacct = im_bankactno+3(15).
ELSE.
ex_ibgbankacct = im_bankactno+0(16).
ENDIF.
ENDFUNCTION.
Hope this will resolve your problem.
Reward if it is helpfull..
Similar Messages
-
How to create Billing Plan in sales order using Function module /BAPI
hi,
How to create Billing Plan in sales order using Function module /BAPI
i hv check few FM such
BILLING_SCHEDULE_READ
BILLING_SCHEDULE_GET_NUMBER
BILLING_SCHEDULE_SAVE
But unable to create billing plan for a sales order.....any other method to create???Hi,
Use this link.
Create sales order with billing plan via LSMW and BAPI BUS2032
BAPI or Function to update Billing Plan in Sales Order Items
Hope this will help you.
Regards,
Vijay -
Hi,
Can any buddy tell me the Bapi used for Process order change
with following scenarios:
Quantity change
Resource change
Rescheduling
Control key change
RM Change
Recipe change
TECO
REVOKE
Material shortage check
Best Regards,
Sheetal.Hi,
BAPI_PROCORD_CREATE for process order create
BAPI_PROCORD_CHANGE - Change Process Order
BAPI_PROCORD_CLOSE - Close Process Order
BAPI_PROCORDCONF_CANCEL for Cancel Process Order
Confirmation.
BAPI_PROCORD_COMPLETE_TECH - Complete Technically
BAPI_PROCORD_RELEASE - Release Process order
BAPI_PROCORD_SET_DELETION_FLAG - Deletion Flag
BAPI_PROCORD_REVOKEUSERSTATUS - Cancel User Status
BAPI_PROCORD_SCHEDULE - Carry Out Scheduling
pls refer below link
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/200dd1cc-589e-2910-98a9-bb2c48b78dfa
http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm
Regards,
Sankaran -
How to execute the process chain using function module
Hi,
How can we execute the process chain when there is any process failed. For ex. when we are running many processes. when loading fails in local process chain, after fixing this error, how can we execute the rest of processes. Can we execute the rest of processes using any function module. Kindly guide me.Hi,
Chk the weblog.
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3149. [original link is broken] [original link is broken] [original link is broken]
Regards,
Balaji -
Assigning of process code to function module
hi all,
please let me know where to go for assigning teh process code to function module. i am unable to get the function module from the process code(we42). please let me know
thank you
chanIn WE42 itself we can assign the process code to a FM.
select new entries.
Enter a process code name & description.
Enter Ur FM in Identification Field.
Now select Processing by Function module in Processing type.
Save it.
For outbound do the same thing in WE41 tcode -
New and enhanced or changed function modules in Ecc6.0 compare to 4.6C
Hi all Experts,
Now i am at the middle phase of my upgrade project. How can i list module wise (like SD, FI, MM) function modules which modified or newly came to ecc 6.0 or deleted in ecc?
I already visited the sap site and taken the delta functions. but its not having this function modules.
where i can find and list?
Kindly help please....
points will awarded.
RaghavHi Sriram,
It also helps. but my need is only what are the new/changed function modules in ECC6.0 when compared to 4.6C. How to list this?
Kindly anyone also answer to me.
Regards,
Raghav -
I want bapi process for bap_goodsmvt_create function module
hai this is siva
i want bapi process for bap_goodsmvt_create function module,Hi ALL,
I am new to ABAP.
I have created function module ZMM5 , no syntax error is there.
but while activating i am getting error,
PROGRAM SAPLZSKG REPORT / PROGRAM STATEMENT MISSING, OR PROGRAM TYPE IS I ( INCLUDE).
I WANT TO CHECK THE SYNTAX FOR UNICODE.
i am not able to check the syntax as i tried by giving FM name, FG name and include name.
can you please help me.
Thanks in advance.
best regards,
zubera -
Problem with Creation of CRM Order via Function Module Test
I am trying to check the order creation process from external systems by using the test function in Tcode SE37 with Function Module BAPI_BUSPROCESSND_CREATEMULTI.
I have created a Test Sequence of the following FMs:
BAPI_BUSPROCESSND_PROCSETTINGS
BAPI_BUSPROCESSND_CREATEMULTI
BAPI_PROCESS_SAVE
BAPI_TRANSACTION_COMMIT
All that I have been able to create so far is an order header without a Sold-to or Ship-to and no items. I am able to populate the Organization data, Header text and Appointments. The only partner function that is being populated is the one that is being automatically picked up from my user master.
For the BAPI_BUSPROCESSND_CREATEMULTI I am populating the following tables:
HEADER 1 entry
ITEM 2 entries
PARTNER 2 entries
ORGANISATION 1 entry
APPOINTMENT 2 entries
INPUT_FIELDS 41 entries
SCHEDULELINE 2 entries
I have created the entries based upon information gained through debugging function module CRM_ORDER_MAINTAIN during the creation of a service order.
It would be interesting to know if anybody has successfully created an order via the SE37 test function and if so, it would be useful to see the data in the relevant tables.HEllo ,
Write a wrapper to the function module CRM_ORDER_MAINTAIN.
To populate the Text use below code
ls_input_field_names-fieldname = 'REF_GUID'.
INSERT ls_input_field_names INTO TABLE lt_input_field_names.
ls_input_field_names-fieldname = 'REF_KIND'.
INSERT ls_input_field_names INTO TABLE lt_input_field_names.
ls_input_field_names-fieldname = 'TDID'.
INSERT ls_input_field_names INTO TABLE lt_input_field_names.
ls_input_field_names-fieldname = 'TDSPRAS'.
INSERT ls_input_field_names INTO TABLE lt_input_field_names.
ls_input_field_names-fieldname = 'TDSTYLE'.
INSERT ls_input_field_names INTO TABLE lt_input_field_names.
ls_input_field_names-fieldname = 'TDFORM'.
INSERT ls_input_field_names INTO TABLE lt_input_field_names.
ls_input_field_names-fieldname = 'LINES'.
INSERT ls_input_field_names INTO TABLE lt_input_field_names.
ls_input_field_names-fieldname = 'MODE'.
INSERT ls_input_field_names INTO TABLE lt_input_field_names.
CLEAR ls_input_fields.
ls_input_fields-ref_guid = attr_guid.
ls_input_fields-ref_kind = 'A'.
ls_input_fields-objectname = 'TEXTS'.
CONCATENATE 'CRM_ORDERH' order_guid INTO ls_input_fields-logical_key.
ls_input_fields-field_names = lt_input_field_names.
INSERT ls_input_fields INTO TABLE attr_t_inputfields.
Call Order maintain FM to create any order
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
EXPORTING
it_text = lp_order->attr_t_text
it_partner = lp_order->attr_t_partner
IMPORTING
et_exception = et_exception
CHANGING
ct_orderadm_h = lp_order->attr_t_orderadm_h
ct_input_fields = lp_order->attr_t_inputfields
EXCEPTIONS
error_occurred = 1
document_locked = 2
no_change_allowed = 3
no_authority = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards
Satish -
Process order change pointers - not getting logged
Hi,
I have defined change pointers for Process order for one custom message type in BD52 (and BD50 as well.). I have included AFKO, AFPO and AUFK tables (e.g. fields like KEY, GAMNG).
But no change pointers are getting logged when ever I create or change a process order through COR1/2.
Am I missing something?.. (and yes Change pointer are active 'Globally'.)
Thanks.hi,
generally change pointers (table: BDCP) are saved during change document creation (table CDHDR),
but due to performance reasons this funcionality was switched off...
see oss note 390635...
I think, if you want - you must write own code in which change pointers will be created,
look at these function modules, should be helpful:
ORDER_WRITE_DOCUMENT
CHANGEDOCUMENT_CLOSE
CHANGE_POINTERS_CREATE_LONG
regards, darek -
COR1 create process order change field value when save(PPCO0001)
Dears
When tcode: COR1 create process order, i want to change some fields value on the tab: "Goods Recpt", for example the field: Goods Recipient: , anyone konws how to do this? now i am trying to using the exit: PPCO0001( EXIT_SAPLCOBT_001)
in thie eixt tables POSITION_TABLE : has this field: WEMPF (Goods Recipient) , i add some coding to change this field and save , but the change is not affect on the order . that is when open the order just create , this field is still empty.
do i need some other process or call some other functions or some other exit to do this?
thanks a lot for your posting.
Edited by: Jackyguoguo on Mar 11, 2010 3:51 AM
Edited by: Jackyguoguo on Mar 11, 2010 4:21 AM1. Use BADI: WORKORDER_UPDATE--> Method: BEFORE_UPDATE
2. Use ASSIGN "(SAPLCOBT)AFPO_BT[]" statement to access and modify the desired fields.
Regards,
Suraj -
Hello Experts,
we are using SD_SALESDOCUMENT_CREATE function module to create sales order.
Sales order is creating successfully but the configuration for the items are not updating.
Could any one help me out on this ....we tried in different ways but couldn't ....
Here is the code....
*---Filling Configuration data
*--- Filling Configuration Reference Item / Instance
w_sales_cfgs_refinst-posex = w_items-itm_number.
w_sales_cfgs_refinst-config_id = '000001'.
w_sales_cfgs_refinst-inst_id = '00000001'.
APPEND w_sales_cfgs_refinst TO t_sales_cfgs_refinst.
CLEAR w_sales_cfgs_refinst.
*---Filling Configuration Reference Data SALES_CFGS_REF Table
w_sales_cfgs_ref-posex = w_items-itm_number.
w_sales_cfgs_ref-config_id = '000001'.
w_sales_cfgs_ref-sce = '1'.
w_sales_cfgs_ref-root_id = '00000001'.
w_sales_cfgs_ref-complete = 'T'.
w_sales_cfgs_ref-consistent = 'T'.
APPEND w_sales_cfgs_ref TO t_sales_cfgs_ref.
CLEAR w_sales_cfgs_ref.
*---Filling Configuration Instances SALES_CFGS_INST Table
w_sales_cfgs_inst-config_id = '000001'.
w_sales_cfgs_inst-inst_id = '00000001'.
w_sales_cfgs_inst-obj_type = 'MARA'.
w_sales_cfgs_inst-class_type = '001'.
w_sales_cfgs_inst-obj_key = w_sales_items_in-material.
w_sales_cfgs_inst-quantity = w_items-target_qty.
w_sales_cfgs_inst-quantity_unit = 'EA'.
w_sales_cfgs_inst-complete = 'T'.
w_sales_cfgs_inst-consistent = 'T'.
w_sales_cfgs_inst-OBJECT_GUID = 'T'.
w_sales_cfgs_inst-PERSIST_ID_TYPE = w_sales_items_in-material.
APPEND w_sales_cfgs_inst TO t_sales_cfgs_inst.
CLEAR w_sales_cfgs_inst.
*---Filling Configuration Characteristic Values SALES_CFGS_VALUE Table
LOOP AT w_items-itm_config INTO wa_itm_config.
w_sales_cfgs_value_in-config_id = '000001'.
w_sales_cfgs_value_in-inst_id = '00000001'.
w_sales_cfgs_value_in-charc = wa_itm_config-charc_name.
w_sales_cfgs_value_in-value = wa_itm_config-charc_value.
APPEND w_sales_cfgs_value_in TO t_sales_cfgs_value.
*---Filling Configuration Variant Condition Key SALES_CFGS_VK
w_sales_cfgs_vk-config_id = '000001'.
w_sales_cfgs_vk-inst_id = '00000001'.
w_sales_cfgs_vk-vkey = wa_itm_config-charc_name.
APPEND w_sales_cfgs_vk TO t_sales_cfgs_vk.
CLEAR : w_sales_cfgs_value_in,w_sales_cfgs_vk.
ENDLOOP.
Regards,
Harsha PHello All,
Actually there was a bug in my code to update configuration for an item in sales order
Below is my Updated Code with that i can updated configuration successfully....
*---Filling Configuration data
*---Filling Configuration Reference Data SALES_CFGS_REF Table
w_sales_cfgs_ref-posex = w_items-itm_number.
w_sales_cfgs_ref-config_id = '000001'.
w_sales_cfgs_ref-sce = '1'.
w_sales_cfgs_ref-root_id = '00000001'.
w_sales_cfgs_ref-complete = 'T'.
w_sales_cfgs_ref-consistent = 'T'.
APPEND w_sales_cfgs_ref TO t_sales_cfgs_ref.
CLEAR w_sales_cfgs_ref.
*---Filling Configuration Instances SALES_CFGS_INST Table
w_sales_cfgs_inst-config_id = '000001'.
w_sales_cfgs_inst-inst_id = '00000001'.
w_sales_cfgs_inst-obj_type = 'MARA'.
w_sales_cfgs_inst-class_type = '300'.
w_sales_cfgs_inst-obj_key = w_sales_items_in-material.
w_sales_cfgs_inst-quantity = w_items-target_qty.
w_sales_cfgs_inst-quantity_unit = 'EA'.
w_sales_cfgs_inst-complete = 'T'.
w_sales_cfgs_inst-consistent = 'T'.
w_sales_cfgs_inst-object_guid = w_sales_items_in-material.
w_sales_cfgs_inst-persist_id_type = 'G'.
APPEND w_sales_cfgs_inst TO t_sales_cfgs_inst.
CLEAR w_sales_cfgs_inst.
*---Filling Configuration Characteristic Values SALES_CFGS_VALUE Table
LOOP AT w_items-itm_config INTO wa_itm_config.
w_sales_cfgs_value_in-config_id = '000001'.
w_sales_cfgs_value_in-inst_id = '00000001'.
w_sales_cfgs_value_in-charc = wa_itm_config-charc_name.
w_sales_cfgs_value_in-value = wa_itm_config-charc_value.
APPEND w_sales_cfgs_value_in TO t_sales_cfgs_value.
*---Filling Configuration Variant Condition Key SALES_CFGS_VK
w_sales_cfgs_vk-config_id = '000001'.
w_sales_cfgs_vk-inst_id = '00000001'.
w_sales_cfgs_vk-vkey = wa_itm_config-charc_name.
APPEND w_sales_cfgs_vk TO t_sales_cfgs_vk.
CLEAR : w_sales_cfgs_value_in,w_sales_cfgs_vk.
ENDLOOP.
CLEAR : w_sales_items_in,wa_mara,w_items,w_sales_schedules_in,
w_items-itm_number.
ENDLOOP.
Cheers,
Harsha -
XI-- IDOC scenario, how to link process code with function module
Hi Forum,
I have a XI--->IDOC (R/3) scenario,
where i m creating a IDOC in XI and sending it to R/3,
i have done all settings to send the IDOC from XI to the R/3,
i also have the function module to process that IDOC in R/3,
the problem is:
I want to know in details (step by step) how to make a Idoc Inbound process code, link it with the function module and use the process code in the Partner Profile in R/3,
pls helpHI,
FOr this u need to go to transaction WE41 for inbound and WE40 for outbound there u assign the function module.
Now u go to WE20 transaction for partner profile and u can assign the proces code to the inbound message.
Go to the below help for more information:
http://help.sap.com/saphelp_nw04/helpdata/en/72/c18ee5546a11d182cc0000e829fbfe/frameset.htm
Inbound process code:
http://help.sap.com/saphelp_nw04/helpdata/en/72/c18ee5546a11d182cc0000e829fbfe/frameset.htm
Thnx
Chirag -
Processing code and Function Module for IDOC
hi forum,
i m trying to make a file to IDOC scenario,
the IDOC is being sent to a R/3 system,
for the purpose, in R/3 i need to make a inbound processing code, can u tell me how to make a processing code and link it with a Function Module.......
can u guide me....sudheer,
If you are using standard idoc then you do not need to create new processing code.
There would be standard processing code available. You need to set input partner profile with processing code.
Let us know which idoc type you are using for inbound posting.
Anyway..TC for Creating processing code is : WE41(Outbound) and WE42 (Inbound)
Nilesh -
Process code's function module required for the IDOC Message type PROACT
Hi,
I am trying to trigger an IDOC from ME32K transaction which will carry my Contract agreement details to XI. The IDOC I am using for this purpose is PROACT.PROACT01. But I couldn't find the outbound process code / Function module for the process code associated to this IDOC message type.
Pls help me out....
Thanks,
Ram KalyanI checked table EDIFCT for the message type and found this:
Function module Function type Basic type Message Type
IDOC_INPUT_PROACT F PROACT01 PROACT
Oops...I think you are looking for outbound..Ignore -
Process code for Function Module IDOC_INPUT_MBGMCR
hello!!
here i m tryin to create n inbound idoc
idoc type - MBGMCR02
Function Module - IDOC_INPUT_MBGMCR
but i dont knw the process code for dat can ny 1 help me to find it?
1st of all how to find da process code if u hav the FM ?
it wld b more helpful if ny1 cld give me the process code
thank u
ashwineehai
if u dont have process code r cant able to find process code,
u create process code its very easy.
for inbound, go to
TX-WE42.
click create give ur process code and give that function module.
in processing type,
u check the radiobutton as processing by function module and save it.
then, u can use this process code in our partner profile .
any doubt regarding this u can ask me.
Message was edited by:
tamilarasan kandasamy
Maybe you are looking for
-
Keep songs on the ipod, but not itunes
How do I keep stuff on my ipod, but not on my computer?
-
How do i get my ipod unlocked?
My ipod is disable and it wont let me unlock it on itunes. How do i get it unlocked?
-
Greetings What would be the syntax if I want to use use '999G999G990D00' to show only two decimal points for outstanding_receipt_value in the following ((declared_quantity - delivered_qty) * po_unit_price) outstanding_receipt_valueThank you
-
AT200 impossible to write micro-sd card
Hi forum, I have a problem with the external sd card. The tablet shows it, but it is impossible to write on. regards holgg
-
My battery is dead in about an hour. What gives?
I just bought a new Nano Ipod. I can listen for about an hour to a few songs and the battery is drained. What can I do? Thanks, Tom