Bapi for modify email
Hi
I want modify the infomation about email of a Business Partner, but i need a BAPI , and how can i apply this??
Please examples
Thanks
Hi Gregory,
Unfortunately all the relationship BAPIs need both the partners to work on the relationship data.
In this case, first use the module BUPR_RELATIONSHIPS_GET to list all the relationships for a business partner (importing parameter iv_partner_1 or the guid).
This module would return all the relationships for the partner.
After this the BAPI BAPI_BUPR_CONTP_ADDR_CHANGE can be used to modify the email. Hope this helps.
Regards,
Sudheer.
Similar Messages
-
BAPI for modify "engineering change request" - Trx CC32
Hi abapers,
someone knows a bapi to modify an engineering change request?
Thx!You can try with the below BAPI's.
BAPI_BUS1077_CHANGE EHS: Change Specification
BAPI_BUS1091_CHANGE EHS: Change Phrase
BAPI_BUS1240_CHANGE Agent Determination
BAPI_CHARACT_CHANGE BAPI for Characteristics - Change
Reward if it is useful.
Thanks,
Srinivas -
BAPI for modifying project status
Hello all,
I have found a function :STATUS_TEXT_EDIT to get the status of a project, but now I want to modify the status of the project. Does anybody know if there is a BAPI to do this?
Thank you very much.
ReyesHi Reyes!
I think that there's no any BAPI to change the Status of the Project or WBS element.
But you can do the next steps for any <b>OBJNR</b> (Project/WBS):
1. Set a breakpoint in program LBSVAF12 in the form STATUS_UPDATE. Then go to change the status user/system of the project/WBS using transaction CJ02. Make you updations and save. You should reach your breakpoint.
2. The function module <b>'STATUS_UPDATE'</b> is triggered using internal table "<u>jest_updt</u>". Copy the records of this table carefully. It is updating the standard table JEST (select the corresponding fields in your program).
3. Using the function module 'STATUS_OBJECT_READ' with the OBJNR you can obtaing the fields <u>OBTYP</u> and <u>STSMA</u>.
4. Then you're ready to built your ABAP program to automatize the status updation. Append the corresponding records in the internal table " jest_update" and just function <b>'STATUS_UPDATE' IN UPDATE TASK</b> with your internal table. Then COMMIT WORK AND WAIT. The status is now changed like manually in step 1.
5. To make it perfect you should maintain the correct change numbers (<u>CHGNR</u>) in the <b>JEST</b> table.
Best regards and see you in Madrid next time!
Roger -
Automatic rule for modifying email
hey
we have a old product that send email to users with a link back to the product,
we are trying to integrate this product with a SSL VPN solution and we must change the format of those links.
we cannot change or play with this old product, and right now the only idea that we have is to run a script on the exchange server on every email that this product sends that will modify the content of the email and then release it.
can i do that on the exhcange server?Hello
Could you please explain your situation in detail? Does your "old product" outside your network or on the internet somewhere?
What do you mean by "must change the format of those links"? A link is just a URL and what changes can you make to the URL.. do you mean by shortening the URL or masking the URL with something else?
I want to understand your requirement clearly so that I can offer some assistance or help in this regard. You cannot run scripts or any rules to modify the actual content of the email (if microsoft allowed you do so, it will a breach of email RFC's)
You can do a Transport Rule and apply some actions to messages that match the conditions. Transport rules have many actions available, such as rejecting, deleting, or redirecting messages, adding additional recipients, adding prefixes in the message
subject, or inserting disclaimers in the message body. With any of the actions, you can isolate those emails from the "old product" and satisfy your requirement?
All the best!
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. Regards, Siva -
BAPI for Purchase Order Vendor Confirmations
Can any body suggest me the BAPI for the purchase order vendor confirmations transaction code me22n - Tab<b>-(Confirmations)</b> alone.
regs,
RajaDear Asha,
Pls find the below code, this handles only the BDC part of the program.Updates only the EKES table thru standard confirmation tab on ME22N.
Kindly clarify any doubts in this reg.
regs,
Raja.
FORM ins_stdtable .
DATA:var TYPE c LENGTH 30,
cstr(02) TYPE n value '01'.
data istr(02) type n value '00'.
DATA recno TYPE i.
data: eblc type c length 5,
ebli type i.
DATA: kebeln LIKE utab-ebeln.
DATA: BEGIN OF indx,
ebelp type ekes-ebelp,
eindx type i,
END OF indx.
DATA : CNT TYPE I value 1.
DATA: COUNTER(2) TYPE N VALUE '01',
ROWS TYPE P.
DATA: w_textout LIKE t100-text.
DATA: gd_update TYPE i,
gd_lines TYPE i.
data :waek like indx,
itabek LIKE TABLE OF waek.
*Used to stores error information from CALL TRANSACTION Function Module
DATA: BEGIN OF messtab OCCURS 0.
INCLUDE STRUCTURE bdcmsgcoll.
DATA: END OF messtab.
SELECT MAX( ETENS ) FROM ekes INTO zetens WHERE ebeln =
ekko-ebeln.
recno = zetens.
LOOP AT utab.
SELECT distinct ebelp INTO CORRESPONDING FIELDS OF TABLE
itabek FROM eket WHERE ebeln = ekko-ebeln.
loop at itabek into waek.
ebli = ebli + 1.
waek-eindx = ebli.
modify itabek from waek.
endloop.
loop at itabek into waek where ebelp = utab-ebelp.
eblc = waek-eindx.
condense eblc.
endloop.
AT NEW ebeln.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MECHOB'.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0002'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MEOK'.
PERFORM bdc_field USING 'BDC_CURSOR'
'MEPO_SELECT-EBELN'.
PERFORM bdc_field USING 'MEPO_SELECT-EBELN'
utab-ebeln.
AT New EBELP.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_CURSOR'
'DYN_6000-LIST'.
perform bdc_field using 'DYN_6000-LIST'
eblc.
perform bdc_field using 'BDC_OKCODE'
'=DDOWN3200'.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=TABIDT15'.
perform bdc_field using 'DYN_6000-LIST'
eblc.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'PICK'.
ENDAT.
ENDAT.
PERFORM bdc_field USING 'DYN_6000-LIST'
eblc.
recno = recno + 1.
cstr = recno.
counter = cstr.
*This is to check whether the scheduled line item exceeding 12 rows. if so, use *page up
if counter >= 13.
rows = counter MOD 13.
istr = ( ( counter - rows ) / 13 ).
do istr times.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'=EINB_CREATE'.
enddo.
DO 2 TIMES.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'=P+'.
enddo.
COUNTER = '03'.
cstr = '03'.
ENDIF.
CONCATENATE 'EKES-EBTYP(' cstr ')' INTO var.
PERFORM bdc_field USING 'BDC_CURSOR'
var.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_field USING var
utab-ebtyp.
CONCATENATE 'RM06E-EEIND(' cstr ')' INTO var.
PERFORM bdc_field USING var
utab-eeind.
CONCATENATE 'EKES-MENGE(' cstr ')' INTO var.
PERFORM bdc_field USING var
utab-menge.
CONCATENATE 'J_3ASZDI-J_3ASIZED(' cstr ')' INTO var.
PERFORM bdc_field USING var
utab-j_3asize.
AT END OF Ebelp.
PERFORM bdc_dynpro USING 'SAPLMEGUI' '0014'.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MESAVE'.
perform bdc_dynpro using 'SAPLMEGUI' '0014'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
CALL TRANSACTION 'ME22N' USING bdcdata MODE 'E'.
IF sy-subrc EQ 0.
savedone = 'Y'.
saveflag = 'Y'.
initflag = 'N'.
MESSAGE 'SAVED' TYPE 'I'.
else.
saveflag = 'N'.
savedone = 'N'.
initflag = 'Y'.
MESSAGE 'Not Saved' Type 'I'.
endif.
CLEAR: bdcdata.
REFRESH bdcdata.
ENDAT.
ENDLOOP.
ENDFORM.
Hope this will help u -
Suitable BAPI for extended withholding tax
we are migrating from classic withholding tax to extended withholding tax for which we are modifying all the programs which were using MRHR (invoice) in the background, since MRHR will be replaced by MIRO in extended withholding tax, in this process when we are trying to modify one program, we could not record MIRO, hence our technical team suggested for use of BAPI functional module, kindly anybody suggest me which is the suitable BAPI for posting of invocie verification.
Thanx in advance.
KrishnaHi Krishna,
Please check BAPI_INCOMINGINVOICE_CREATE and let me know.
Assign points if it useful.
Regards
Ravinagh Boni -
BAPI for Transaction VA01?
How to Develope an interface program to upload the sales order data from legacy system to SAP using BAPI for Transaction VA01.Explain me clearly?
VA01:
BAPI_SALESORDER_CREATEFROMDAT1
BAPI_SALESORDER_CREATEFROMDAT2
steps for bapi creation
STEP 1 - Define a structures for the BAPI
In this step a structures for the parameters and tables of the function module used for the BAPI are defined.
Use Data type -> Structure
Define the following structures:
ZBAPI_ORDER_STATUS_IMPORT which contains the following fields:
ORDERID Order number (Keyfield)
SPRAS Language
ExcludeInactive - Checkbox - Exclude inactive status
ZBAPISTAT:
STEP 2 - Write Function Module
Important notes:
Each BAPI must have its own function group.
Under the attributes tab remember to select Processing Type Remote Enabled module, otherwise the function module cannot be invoked via RFC and used as a BAPI
Import/Export parameters can only be BY VALUE for an RFC enabled function module
We are only creating one BAPI in this example, but you can create related BAPIs in the same function pool, so they will be able to share global data.
Code
Notes:
The subroutine SET_RETURN_MESSAGE is a standard routine used for BAPIs that use the BAPIRETURN structure
In form Z_BAPI_GET_ORDER_SYSTEM_STATUS there is a test IF 1 = 2. If the test is true a message is displayed. The condition will obviously never be true, and we will never want to display a message in a BAPI. The reason why it is included is, that it create a reference for the message, so that the WHERE USED functionality can be used for the message. This is the SAP standard way to handle it, copied from the Company Code GetList BAPI.
INCLUDE LZBAPISTATUSUXX
THIS FILE IS GENERATED BY THE FUNCTION LIBRARY. *
NEVER CHANGE IT MANUALLY, PLEASE! *
INCLUDE LZBAPISTATUSU02.
"Z_BAPI_GET_ORDER_SYSTEM_STATUS
INCLUDE LZBAPISTATUSTOP - Global data
FUNCTION-POOL ZBAPISTATUS. "MESSAGE-ID Z3
Types:
begin of Type_tj02t,
istat like tj02t-istat,
txt04 like tj02t-txt04,
txt30 like tj02t-txt30,
end of type_tj02t.
DATA:
Declarations for TABLE parameter
T_BAPISTAT like ZBAPISTAT occurs 0,
G_BAPISTAT like ZBAPISTAT,
Table for object texts
t_tj02t type type_tj02t occurs 0,
g_tj02t type type_tj02t.
Structure for return messages
DATA:
BEGIN OF MESSAGE,
MSGTY LIKE SY-MSGTY,
MSGID LIKE SY-MSGID,
MSGNO LIKE SY-MSGNO,
MSGV1 LIKE SY-MSGV1,
MSGV2 LIKE SY-MSGV2,
MSGV3 LIKE SY-MSGV3,
MSGV4 LIKE SY-MSGV4,
END OF MESSAGE.
INCLUDE LZBAPISTATUSF01 - Subroutines
***INCLUDE LZBAPISTATUSF01 .
*& Form SET_RETURN_MESSAGE
This routine is used for setting the BAPI return message.
The routine is a standard routine for BAPIs that handles the message
structure for the BAPIRETURN structure. It has been copied from the
BAPI Company Code Getlist
-->P_MESSAGE text
<--P_RETURN text
form SET_RETURN_MESSAGE USING VALUE(P_MESSAGE) LIKE MESSAGE
CHANGING P_RETURN LIKE BAPIRETURN.
CHECK NOT MESSAGE IS INITIAL.
CALL FUNCTION 'BALW_BAPIRETURN_GET'
EXPORTING
TYPE = P_MESSAGE-MSGTY
CL = P_MESSAGE-MSGID
NUMBER = P_MESSAGE-MSGNO
PAR1 = P_MESSAGE-MSGV1
PAR2 = P_MESSAGE-MSGV2
PAR3 = P_MESSAGE-MSGV3
PAR4 = P_MESSAGE-MSGV4
LOG_NO = ' '
LOG_MSG_NO = ' '
IMPORTING
BAPIRETURN = P_RETURN
EXCEPTIONS
OTHERS = 1.
endform. " SET_RETURN_MESSAGE
FUNCTION Z_BAPI_GET_ORDER_STATUS
FUNCTION z_bapi_get_order_system_status.
""Local interface:
*" IMPORTING
*" VALUE(I_AUFNR) TYPE AUFNR
*" VALUE(I_SPRAS) TYPE SPRAS DEFAULT SY-LANGU
*" VALUE(I_EXCLUDEINACTIVE) TYPE CHAR1 OPTIONAL
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRETURN
*" TABLES
*" T_BAPISTAT STRUCTURE ZBAPISTAT
DATA:
l_aufnr LIKE afko-aufnr,
l_objnr LIKE jest-objnr.
Check if order exists
SELECT SINGLE aufnr
FROM afko
INTO l_aufnr
WHERE aufnr = BAPI_ORDER_STATUS_IMPORT-orderid.
IF sy-subrc NE 0.
CLEAR message.
message-msgty = 'E'.
message-msgid = 'Z3'.
message-msgno = '000'.
message-msgv1 = BAPI_ORDER_STATUS_IMPORT-orderid.
PERFORM set_return_message USING message
CHANGING return.
IF 1 = 2.
The only reason to include this statement, that will obviously
never execute, is that it will create a referecence so that you
can find out where a particular message is being used. This
functionality is used by the BAPIs programmed by SAP
MESSAGE e000(z3).
ENDIF.
ENDIF.
CHECK return IS INITIAL.
Read order status
CONCATENATE 'OR' BAPI_ORDER_STATUS_IMPORT-orderid INTO l_objnr.
IF BAPI_ORDER_STATUS_IMPORT-i_excludeinactive = 'X'.
SELECT objnr stat inact
FROM jest
INTO TABLE t_bapistat
WHERE objnr = l_objnr AND
inact 'X'.
ELSE.
SELECT objnr stat inact
FROM jest
INTO TABLE t_bapistat
WHERE objnr = l_objnr.
ENDIF.
IF sy-subrc 0.
No object status found
CLEAR message.
message-msgty = 'E'.
message-msgid = 'Z3'.
message-msgno = '001'.
message-msgv1 = BAPI_ORDER_STATUS_IMPORT-orderid.
PERFORM set_return_message USING message
CHANGING return.
IF 1 = 2.
MESSAGE e001(z3).
ENDIF.
ENDIF.
CHECK return IS INITIAL.
Read order status texts
SELECT istat txt04 txt30
FROM tj02t
INTO TABLE t_tj02t
FOR ALL ENTRIES IN t_bapistat
WHERE istat = t_bapistat-stat AND
spras = BAPI_ORDER_STATUS_IMPORT-i_spras.
SORT t_tj02t BY istat.
LOOP AT t_bapistat INTO g_bapistat.
READ TABLE t_tj02t
WITH KEY istat = g_bapistat-stat BINARY SEARCH
INTO g_tj02t.
IF sy-subrc = 0.
MOVE:
g_tj02t-txt04 TO g_bapistat-txt04,
g_tj02t-txt30 TO g_bapistat-txt30.
MODIFY t_bapistat FROM g_bapistat TRANSPORTING txt04 txt30.
ENDIF.
ENDLOOP.
ENDFUNCTION.
OBJNR like JEST-OBJNR
STAT like JEST-STAT
INACT like JEST-INACT
TXT04 like TJ02T-TXT04
TXT30 likeTJ02T-TXT30
Important note:
You will have to define a structure for every parameter in the BAPI. You cannot use the same structures used in existing applications because BAPI structures are frozen when BAPIs are released and then there are restrictions on changing them.
STEP 3 - Create the API Method Using the BAPI WIZARD
The BAPI wizard is used toTo expose the remote function module as a BAPI. The wizard will generate some additional code, so the function module is a valid method of the BOR. This allows the BAPi to be called as a workflow method in addition to be called by an outside program.
Note: Each function module corresponds to a method in the BOR
Go to the Business Object Builder SWO1.
You can either create the new Object type as a subtype of an existing business object or create a new business object from scratch. In this example it would be obvious to create the Object type as a subtype of BUS2005 Production order. However, to illustrate how to create a new Object type from scratch, we will do this.
In the Object/Interface type field write the name of the new Business Object: ZORDERSTAT. Press enter and fill in the additional fields necessary to create the object type.
Supertype: Not relevant because we are creating our object from scratch
Program. This is the name of the program where the wizard generates code for the Object type, NOT the function module we created earlier. The program name must not be the name of an existing program.
Press enter and create the new business object. Note that when you create the business object a standard interface, an attribute ObjectType and the methods ExistenceCheck and Display are automatically generated. These cannot be changed !
The next step is to add the Z_BAPI_GET_ORDER_STATUS method to the business object. Select Utilities -> API methods -> Add method and write the name of the function module in the dialog box. Next the dialog ox show below will be shown. This is the start screen of the BAPI wizard. Proceed with wizard by pressing the button.
After you have finished the wizard, you will notice that the ZGetOrderStatus has been added to the business object:
You can double-click on the method to see its properties. To use the business object you must change the Object type status to Implemented. Use menu Edit->Change releases status->Object type->To implemented. No you can test the object (Press F8).
Note that the BAPI wizard has added a wrapper class for the function module so it can be sued as method in the business object. Choose menu Goto->Program to display the program:
Implementation of object type ZORDERSTAT *****
INCLUDE <OBJECT>.
BEGIN_DATA OBJECT. " Do not change.. DATA is generated
only private members may be inserted into structure private
DATA:
" begin of private,
" to declare private attributes remove comments and
" insert private attributes here ...
" end of private,
KEY LIKE SWOTOBJID-OBJKEY.
END_DATA OBJECT. " Do not change.. DATA is generated
BEGIN_METHOD ZGETORDERSTATUS CHANGING CONTAINER.
DATA:
BAPIORDERSTATUSIMPORT LIKE ZBAPI_ORDER_STATUS_IMPORT,
RETURN LIKE BAPIRETURN,
TBAPISTAT LIKE ZBAPISTAT OCCURS 0.
SWC_GET_ELEMENT CONTAINER 'BapiOrderStatusImport'
BAPIORDERSTATUSIMPORT.
SWC_GET_TABLE CONTAINER 'TBapistat' TBAPISTAT.
CALL FUNCTION 'Z_BAPI_GET_ORDER_STATUS'
EXPORTING
BAPI_ORDER_STATUS_IMPORT = BAPIORDERSTATUSIMPORT
IMPORTING
RETURN = RETURN
TABLES
T_BAPISTAT = TBAPISTAT
EXCEPTIONS
OTHERS = 01.
CASE SY-SUBRC.
WHEN 0. " OK
WHEN OTHERS. " to be implemented
ENDCASE.
SWC_SET_ELEMENT CONTAINER 'Return' RETURN.
SWC_SET_TABLE CONTAINER 'TBapistat' TBAPISTAT.
END_METHOD.
STEP 4 - Final stepsWhen the Business object has been checked and the documentation created, the following steps must be carried out:
Release the BAPI function module (in the Function Builder).
Release the business object type (in the BOR ObjectType -> Change release status to -> Implemented ).
Release the BAPI as a method in the BOR (Release the methods you has created - Set the cursor on the method then
Edit -> Change release status -> Object type component -> To released )
For potential write BAPIs: Release the IDoc and its segments
You can now display the BAPI in the BAPI Explorer:
for detailed expalnation
http://www.erpgenie.com/abap/bapi/example.htm
do reward if helpful -
Hey SAP Experts,
Is there any BAPI for the purchase data in KONV table?
Could anyone provide this?
Ample points will be rewarded.Hello Prathibha,
Take a look at function module KONV_UPDATE to see if it can help you.
Depending on the value that you indicate in PI_UPDKZ, it allows you to make INSERT's, MODIFY's and DELETE's on table KONV. The values you can indicate on table parameter PI_T_KONV.
Kind regards,
Bruno -
Need a BAPI to modify sales document (Inquiry) header conditions
I need a bapi to modify header conditions on an Inquiry sales document. BAPI_CUSTOMERINQUIRY_CHANGE has the appropriate condition and conditionx tables. However, according to the documentation: "Although the BAPI interface is supplied for the condition to be changed, the system does not return the required result and/or the pricing result is inconsistent. Currently, the change of condition lines in existing documents via the BAPIs provided by SAP is not implemented."
Thanks
LeoVinod
Thanks. I tried that bapi yesterday but, as you say, it's difficult to implement. I haven't been able to get it to work yet.
Leo -
Bapi for Sales Order (VA02) change
Hi frnds,
i want to update one field of items in sales order. i understood that BAPI_SALESORDER_CHANGE is right bapi for that. but i dont know how to start this. remember i have to update this thru one report. i mean after executing the report i am displaying the values in ALV report. in that ALV report i am mentioning which sale order items to be changed.
now my doubt after getting the values in internal table how to call that BAPI and what all are should be maintained. if any one have done this or similar to this like calling Stanadard BAPI please send me code to [email protected]
hope it is clear.
Regards,
BaluSee this example.
*& Report ZTEST1
REPORT ZTEST1
NO STANDARD PAGE HEADING
LINE-SIZE 132
LINE-COUNT 65(0)
MESSAGE-ID ZZ.
TABLES: VBAP.
DATA: V_VBELN LIKE VBAP-VBELN.
DATA: ORDERHEADERINX LIKE BAPISDH1X.
*DATA: ORDERHEADERIN LIKE BAPISDH1.
*DATA: BEGIN OF ORDERITEMIN OCCURS 0.
* INCLUDE STRUCTURE BAPISDITM.
*DATA: END OF ORDERITEMIN.
*DATA: BEGIN OF ORDERITEMINX OCCURS 0.
* INCLUDE STRUCTURE BAPISDITMX.
*DATA: END OF ORDERITEMINX.
DATA: BEGIN OF IT_EXTENSIONIN OCCURS 0.
INCLUDE STRUCTURE BAPIPAREX.
DATA: END OF IT_EXTENSIONIN.
DATA: BEGIN OF RETURN OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA: END OF RETURN.
DATA: BEGIN OF BAPIRETURN OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
DATA: END OF BAPIRETURN.
DATA: l_zavbak TYPE bape_vbak,
l_zavbakx TYPE bape_vbakx.
* POPULATE BAPI DATA AND RUN BAPI
* CLEAR: ORDERHEADERINX, ORDERITEMIN, ORDERITEMINX,
* RETURN, BAPIRETURN.
* REFRESH: ORDERITEMIN, ORDERITEMINX, RETURN, BAPIRETURN.
V_VBELN = '0000000153'.
ORDERHEADERINX-UPDATEFLAG = 'U'.
*ORDERHEADERIN-
IT_EXTENSIONIN-STRUCTURE = 'BAPE_VBAK'.
l_zavbak-vbeln = V_VBELN.
l_zavbak-zzplant = '0020'.
IT_EXTENSIONIN-valuepart1 = l_zavbak.
APPEND IT_EXTENSIONIN.
IT_EXTENSIONIN-STRUCTURE = 'BAPE_VBAKX'.
l_zavbakx-vbeln = V_VBELN.
l_zavbakx-zzplant = 'X'.
IT_EXTENSIONIN-valuepart1 = l_zavbakx.
APPEND IT_EXTENSIONIN.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = V_VBELN
* ORDER_HEADER_IN = ORDERHEADERIN
ORDER_HEADER_INX = ORDERHEADERINX
behave_when_error = 'P'
TABLES
RETURN = RETURN
* ORDER_ITEM_IN = ORDERITEMIN
* ORDER_ITEM_INX = ORDERITEMINX
EXTENSIONIN = IT_EXTENSIONIN.
LOOP AT RETURN.
WRITE: / RETURN-TYPE, RETURN-ID, RETURN-NUMBER, RETURN-MESSAGE,
RETURN-LOG_NO, RETURN-LOG_MSG_NO, RETURN-MESSAGE_V1, RETURN-MESSAGE_V2,
RETURN-MESSAGE_V3, RETURN-MESSAGE_V4.
ENDLOOP.
Write: / 'BEFORE COMMITT'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = '1'
IMPORTING
RETURN = BAPIRETURN.
Write: / 'AFTER COMMITT'.
LOOP AT RETURN.
WRITE: / RETURN-TYPE, RETURN-ID, RETURN-NUMBER, RETURN-MESSAGE,
RETURN-LOG_NO, RETURN-LOG_MSG_NO, RETURN-MESSAGE_V1, RETURN-MESSAGE_V2,
RETURN-MESSAGE_V3, RETURN-MESSAGE_V4.
ENDLOOP.
** WRITE OUT RETURN
LOOP AT BAPIRETURN.
WRITE: / BAPIRETURN-TYPE, BAPIRETURN-ID, BAPIRETURN-NUMBER, BAPIRETURN-MESSAGE,
BAPIRETURN-LOG_NO, BAPIRETURN-LOG_MSG_NO, BAPIRETURN-MESSAGE_V1, BAPIRETURN-MESSAGE_V2,
BAPIRETURN-MESSAGE_V3, BAPIRETURN-MESSAGE_V4.
ENDLOOP.
** WRITE: / BAPIRETURN. -
hi Guys,
Is there any FM or Bapi to create, Modify, or extract details for RFQ.
Regards,
Tarun BahalHi,
BAPI_REQUISITION_CREATE for creation.
for others:
2031 Business Object Quotation
BAPI_CUSTOMERQUOTATION_CHANGE Change Customer Quotation
BAPI_QUOTATION_CREATEFROMDATA Customer quotation: Create customer quotation
BAPI_QUOTATION_CREATEFROMDATA2 Customer Quotation: Create Customer Quotation
ACC4 FI/CO: BAPIs for UPDATE
BAPI_ACC_SALES_QUOTA_CHECK Accounting: Check Customer Quotation
BAPI_ACC_SALES_QUOTA_POST Accounting: Post Customer Quotation
HRTIM00ABSATTEXT External interface for 2001/2002
BAPI_PTMGREXTATTABS_CHECKQUOTA Simulates Quota Deduction
MCPD DRP interface
BAPI_QUOTA_ARRANGEMENT_GETLIST Get quota arrangement list
TIQU Time quota
BAPI_TIMEQUOTA_GETDETAILEDLIST BAPI: Determines Quota Data for a Personnel Number
Regards,
Kumar(Reward if helpful). -
FM or BAPI for transaction LT0G
Hi all,
I'm looking for a way to use transaction LT0G in the background in order to delete a line from delivery.
Does anyone know a FM or BAPI for doing that?
Thank's,
HagitPlease check these FMS
L_TO_SET_SPECIAL
L_TO_CREATE_MULTIPLE
Hope these fellowing code in program RLLT0G00 will help you:
Line:2037~2089
*===============================================
*........Funktionsbausteine zur TA-Erstellung aufrufen.................
CALL FUNCTION 'L_TO_SET_SPECIAL'
EXPORTING
i_spezi = con_spezi_b
i_vbeln = itab-vbeln
EXCEPTIONS
call_forbidden = 1
input_wrong = 2
OTHERS = 3.
IF sy-subrc <> 0.
*........Fehler........................................................
* --> alle Positionen in LTAP_CREAT/HLP_ITAB rot färben
LOOP AT hlp_itab.
READ TABLE itab WITH KEY vbeln = hlp_itab-vbeln
posnr = hlp_itab-posnr
ltap_tanum = hlp_itab-ltap_tanum
ltap_tapos = hlp_itab-ltap_tapos.
IF sy-subrc = 0.
*........Fehlermeldung ins Protokoll schreiben.........................
PERFORM error_message.
MODIFY itab INDEX sy-tabix TRANSPORTING ikone farbe msgid
msgty msgno msgv1
msgv2 msgv3 msgv4.
ENDIF.
ENDLOOP.
ELSE.
PERFORM docu_batch_buffer_itab "1530856
TABLES itab
gt_gi_canc.
CALL FUNCTION 'L_TO_CREATE_MULTIPLE'
EXPORTING
i_lgnum = lgnum
i_bwlvs = bwlvs-low
* I_BETYP = ' '
* I_BENUM = ' '
* I_LZNUM = ' '
i_nidru = rldru-proto
i_drukz = rldru-drukz
* I_UPDATE_TASK = ' '
i_commit_work = 'X'
* I_BNAME = SY-UNAME
* I_KOMPL = 'X'
* I_SOLEX = 0
* I_PERNR = 0
* I_MINWM = ' '
IMPORTING
e_tanum = hlp_tanum
TABLES
t_ltap_creat = ltap_creat[]
EXCEPTIONS
error_message = 99. -
Hi Experts,
Can anyone please tell me if there is a BAPI for the Tcode FD32 to block a
customer who exceeds his credit limit?
Thanks
Danyif both KNKA and KNKK are updated.
use this FM CREDITLIMIT_CHANGE.
if either KNKA or KNKK is updated.
use FM KLIM_WRITE_DOCUMENT
below is a simple example.
REPORT ZTEST.
TABLES:t014,t014t.
INCLUDE ff02lcdf.
INCLUDE ff02lcdv.
PARAMETERS:kunnr LIKE knkk-kunnr,
kkber LIKE knkk-kkber.
START-OF-SELECTION.
END-OF-SELECTION.
CLEAR:t014,yknka,knka,yknkk,knkk.
SELECT SINGLE * FROM t014 WHERE kkber = kkber.
IF sy-subrc = 0.
*XF02C = t014-waers.
xf02c = t014-waers..
ENDIF.
objectid = kunnr.
tcode = 'FD32'.
utime = sy-uzeit.
udate = sy-datum.
username = sy-uname.
upd_knkk = 'U'.
SELECT SINGLE * FROM knka INTO yknka WHERE kunnr = kunnr.
IF sy-subrc = 0.
MOVE yknka TO knka.
ENDIF.
SELECT SINGLE * FROM knkk INTO yknkk WHERE kunnr = kunnr AND kkber = kkber.
IF sy-subrc = 0.
MOVE yknkk TO knkk.
knkk-klimk = '543.23'.
knkk-ctlpc = 'SG2'.
MODIFY knkk.
ENDIF.
IF ( upd_knka NE space )
OR ( upd_knkk NE space )
CALL FUNCTION 'KLIM_WRITE_DOCUMENT ' IN UPDATE TASK
EXPORTING
objectid = objectid
tcode = tcode
utime = utime
udate = udate
username = username
planned_change_number = planned_change_number
object_change_indicator = cdoc_upd_object
planned_or_real_changes = cdoc_planned_or_real
no_change_pointers = cdoc_no_change_pointers
o_yknka = yknka
n_knka = knka
upd_knka = upd_knka
o_yknkk = yknkk
n_knkk = knkk
o_xf02c = *xf02c
n_xf02c = xf02c
upd_knkk = upd_knkk.
ENDIF.
CLEAR planned_change_number. -
I've entered my passwords for both email accounts numerous time and it still won't send any email and continuosly asks for the passwords.
Hello Timmy790
Try the suggestions in the article below to resolve the issue of seeing your old Apple ID on your iPhone.
iOS 7: If you're asked for the password to your previous Apple ID when signing out of iCloud
http://support.apple.com/kb/ts5223
Regards,
-Norm G. -
PLEASE help!! I use Outlook for my email and the Mail App Icon that is in my dock, that I know nothing about, was also storing all my emails. So, I tried to delete ONLY the emails in the Mail App but somehow (under Preferences maybe?) I also deleted ALL my OUTLOOK emails in my inbox. Can someone please please tell me if there is a way to get my Outlook inbox emails back OR EVEN the emails that were in my Mail app - because even tho I never use the Mail app, at least the emails would be there.
When I was trying to delete the emails in my inbox for the Mail app - I followed THESE directions. It did in fact clear my inbox for the Mail app. But then I went to log on to my Outlook account and EVERY SINGLE EMAIL was gone. And not in the Deleted box. Just gone. Here are the directions I followed that screwed everything up. Please help.
Top menu bar, Mail > Preferences > Accounts > Mailbox Behaviors.
Uncheck "Store deleted messages on the server".
At the drop list for "Permanently erase deleted messages when", choose "Quitting Mail".
Next...
Top menu bar, Mail > Preferences > General.
At "When searching all mailboxes, include results from", uncheck "Trash".
Select All = command Ai found out my prob!
here is what you do.
go to the "system preferences" on your dock.
click "software updates".
click "installed software"
if it shows something about a recent update about "EFI UPDATE, FIRMWARE, THUNDERBOLT" or anything like that, exit out of it.
go to mail.
click "mail" at the top.
click "preferences...".
find the account you are having trouble with, once you do, make sure its highlighted, then click the "-" at the bottom of the window (this will only effect that mail account, it will not effect your ical weather or not its synced thought that email account)
hit the "+" (right next to the "-") and add your accout back!
its something with that update that effected mail, i hope this works out for you, if not reply back
Maybe you are looking for
-
Batch creation of 2ndary cost elements
Hi Experts, Is there a program that will allow me to create secondary elements in a batch? I can only create secondary cost elements one by one right now. Thanks!
-
SF + HD images in web content
Coding html content in Dreamweaver cs6 and embedding it into DPS, I have the impression that the SD and HD png buttons (part of the embedded web content) don't differ on iPad 1 and iPad 3 (retina display). I built the png buttons in normal size and d
-
Prevent uploading files to open directly in Lightroom 5
When I upload image files to my computer hardrive, they open directly into Lightroom 5. How can i prevent this? Jean-Paul
-
Hi all, I am attempting to query back records based on whether the sum of a collumn is above 600 but get a "ORA-00934 group function is not allowed here" error. I have a sneaky feeling its because of the join Im using but I'm a beginner so not sure?
-
Access a supertype's delegated subtype
Hi all, R/3 4.6c. I have a SAP standard object with many subtypes and want to add components that are common to all subtypes. So, extending the supertype would be the cleanest option, but delegation does not get inherited. In pictures: SUPERTYPE -->