BAPI in VA02 transaction
Hi All,
I have a requirement to "Remove the Billing Block u2018ZCu2019 (Check Core Part Return) and save the document" to be done VA02 transaction. Any one please tell me the BAPI for this.
Thanks in Advance,
Neethu.
Hi Neethu,
Try this BAPI 'BAPI_SALESORDER_CHANGE'
LOOP AT ITAB.
AT NEW VBELN.
REFRESH: ORDER_ITEM_IN, ORDER_ITEM_INX.
ENDAT.
WA_ITAB = ITAB.
ORDER_ITEM_IN-ITM_NUMBER = ITAB-POSNR.
ORDER_ITEM_IN-BILL_DATE = ITAB-EDATU.
APPEND ORDER_ITEM_IN.
ORDER_ITEM_INX-ITM_NUMBER = ITAB-POSNR.
ORDER_ITEM_INX-UPDATEFLAG = 'U'.
ORDER_ITEM_INX-BILL_DATE = 'X'.
APPEND ORDER_ITEM_INX.
AT END OF VBELN.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = ITAB-VBELN
ORDER_HEADER_INX = ORDER_HEADER_INX
SIMULATION = SIMULATION
TABLES
RETURN = RETURN
ORDER_ITEM_IN = ORDER_ITEM_IN
ORDER_ITEM_INX = ORDER_ITEM_INX.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
IMPORTING
RETURN = WA_RETURN.
LOOP AT RETURN INTO WA_RETURN.
IF WA_RETURN-TYPE = 'E' OR WA_RETURN-TYPE = 'I' OR
WA_RETURN-TYPE = 'W' OR WA_RETURN-TYPE = 'A'.
CONCATENATE WA_RETURN-TYPE ':' WA_RETURN-MESSAGE
INTO WA_RETURN-MESSAGE.
CONCATENATE WA_ITAB-MSG WA_RETURN-MESSAGE
INTO WA_ITAB-MSG SEPARATED BY '/'.
ENDIF.
ENDLOOP.
IF NOT WA_ITAB-MSG IS INITIAL.
MODIFY ITAB FROM WA_ITAB.
ENDIF.
ENDAT.
ENDLOOP.
Regards
Krishna
Similar Messages
-
How to handle the pop-ups in va02 transaction in Call Transaction Method
Hi Experts ,
I am trying to do bdc by call transaction method for va02 transaction but i am getting popups .
How can i handle the popups and for different sales orders i am getting different popups.
is there any way to handle the pop ups dynamically.
Thanks ain advance.hi,
when you are using BDC then you will have to handle all the popups. this is minus point in using bdc as you need to feed each and every single bit of information so that bdc works fine and if anything misses then your bdc program will get stuck in middle of processing.
best thing is check for function module or BAPIs available for those transactions. For VA02 there is a BAPI available ''BAPI_SALESORDER_CHANGE''. Try using this BAPI and if this BAPI doesnt handle the change you want to make in sales order then only go for BDC.
you can also check BAPIs available in 'BAPI' tcode.
hope this is helpful.
Regards,
Saba -
Screen Error while saving VA02 Transaction
Dear All,
Yesterday there was a sudden power failure in my company. Even UPS also got fail. Due to which some errors are coming in Production Server.
The error is coming in VA02 transaction while saving the transaction. The error is: "SAP SYSTEM MESSAGE - ERROr IN LOADING SCREEN: NO END LABEL".
Here is the below log from SM21 transaction.
Date : 31.10.2009
Time -Type-Nr-Clt-User-TCode-Priority-Grp-N-Text
18:54:00-DIA-000-554-ITDEPT--VA02-D0-1-ransaction Canceled 00 029 ( SAPLSPO2 0301 )
18:54:01-DIA-000-554-ITDEPT----
R4-7-Delete session 001 after error 024
So can you please explain, what I need to do to resolve the error. Although I have already activated the program SAPMV45A.
Regards,
VishalThis link describes similar circumstances.
Error Loading Screens - No End Label
No solution was found and OSS logging was suggested. -
Need to default payment terms with 'A000' in VA02 transaction.
Hi gurus,
In my requirement i need to default payment terms (VBKD-ZTERM) with 'A000' when the order types(VBAK-AUART) are 'ZBRE' and 'ZBC2' in VA02 transaction .
I found the user exit which is getting trigerred - ' exit_sapmv45a_004'.
But in that exit the tables which we are importing having neither payment terms nor order type.
So,can you please help me out .
Thanking you in advance.hi,
My requirement has been changed from va02 transaction to va01 .
Now, i need to default payment terms (VBKD-ZTERM) with 'A000' when the order types(VBAK-AUART) are 'ZBRE' and 'ZBC2' in VA01 transaction .
can anyone suggest how can we solve this..
Thanks in advance.
Regards,
Bhanu -
VA02 Transaction VBAP & VBKD data sync
Dear Friends
VA02 Transaction, VBAP & VBKD data synchronization issue.
For printing invoice I am retrieving data from VBAP & VBKD For Example I have 18 Records in VBAP table the same time I have only 16 entries in VBKD table the field POSNR not matching with VBKD table. I am retrieving the field KDKG1 Customer Condition Group1. I could not see the relevant data for all line items. Only few of them are available.
Is there any other way to get the field KDKG1 having relationship for VBAP all line items.
Can anybody help me to solve the issue?
Ashok VengidapathyHello,
I think you want add to Additonal Tab A - You just need to add to VA01 no need to add VA02. FYI there is no screen exit given by SAP There fore direct SAP screen modifiction is required here same many persons in this forum is discussed.
1) add what ever fields you want to add to screen in VBAP as include structure.
2) go se51 by taking access add what ever fields you have added in VBAP to screen.
3) that's it you dont need any programming unless if u need any validations on those fields.
let me know if you want any clarification.
***********Poorna************ -
BAPI for FRFT_B Transaction
Hi there,
I would like to know the BAPIs that can be used for the transactions FRFT_B ("Fast Entry with Repetitive Codes - Bank to Bank Transfer").
Does anybody know a BAPI for this transaction?
Thank you,
Janetehi,
To know the BAPI's for a particular transaction generally we follow the following steps.
1. Find out the package of the transaction.
Start FRFT_B go to system --> status.
Double click on transaction
Note Package name for that particular transaction.
Open this package in SE80
Open business engineering-->Business object types
Find the BO which sounds the most appropriate
But there are no Business Objects for FRFT_B transaction.
There is another method to find BAPIs
Start FRFT_B go to system-->status
Double click transaction FRFT_B
Double click on package
Read the application component. (this is FI-BL-PT Payment Transactions)
Then open the transaction BAPI
Financial Accounting-> Bank Accounting->Payment Request-> Start Payment
By this you can find the BAPI for a transaction.
Hope this would be helpful for you.
Regards,
Supriya.
Edited by: Supriya.ch on Jan 30, 2012 2:34 PM -
I have used following step to create project/WBS:
1.BAPI_PS_INITIALIZATION
2.BAPI_BUS2001_CREATE
3.BAPI_BUS2054_CREATE_MULTI
4.BAPI_BUS2001_SET_STATUS (To set the status at project level)
OR
BAPI_BUS2054_SET_STATUS (To set the status at WBS element level)
5.BAPI_PS_PRECOMMIT
but in PS our have custom field at WBS element level, these BAPI will create a project but won't update custom field.
how to resolve the problem?
thksHi !
Please have a look to the transaction BAPI .
The Bapis of the project-system described there do have completely other nemas the you've listed... i.e.
BAPI_PROJECTDEF_CREATE or BAPI_PROJECTDEF_UPDATE ....
There's a very good docu for the BAPIs in the transaction BAPI .
Regards
Rainer
Some points would be nive if that helped. -
Creating customer fields in VA01/Va02 transaction in additonal tab 2
hi,
I have to create Customer fields in the item level to va01 / va02 transaction in additional tab 2 subscreen.
Include MV45AFZZ is used for validation. help needed for adding customer fields. thanks in advance.The program SAPMV45A screen 8309 is the Additional Data B tab provided by SAP to add your custom fields . In order to capture the data from your custom fields you can use the user exit MV45AFZZ, USEREXIT_SAVE_DOCUMENT_PREPARE OR
USEREXIT_SAVE_DOCUMENT depening on your functionality.
You need to append the fields in VBAP. Then use the screen painter to add the fields in the screen.
Thanks
Vinod -
Bapi to simulate transaction mb1b with WBS ELEMENT
Hello people, I need a Bapi which simulates transaction 'MB1B' with Reservation and using a wbs element.
Any idea?¿
Thks.Look at BAPI_RESERVATION_CREATE1
rgd
Frédéric
(next time search the BAPI with transaction BAPI or in ifr.sap.com) -
In VA02 transaction which exit is triggering when saving the data
hi all sap gurus,
In VA02 transaction which exit is triggering when saving the dataHi Reddy,
The <b>user exit</b> and badi tried for this transactions are
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
V46H0001 SD Customer functions for resource-related billing
V45W0001 SD Service Management: Forward Contract Data to Item
V45S0004 Effectivity type in sales order
V45S0003 MRP-relevance for incomplete configuration
V45S0001 Update sales document from configuration
V45P0001 SD customer function for cross-company code sales
V45L0001 SD component supplier processing (customer enhancements)
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45E0001 Update the purchase order from the sales order
V45A0004 Copy packing proposal
V45A0003 Collector for customer function modulpool MV45A
V45A0002 Predefine sold-to party in sales document
V45A0001 Determine alternative materials for product selection
SDTRM001 Reschedule schedule lines without a new ATP check
<b>Business Add-in</b>
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing
<b>Reward pts if found usefull :)</b>
Regards
Sathish -
BAPI BAPI_GOODSMVT_CREATE for Transaction MB01
Hi All,
I am using BAPI BAPI_GOODSMVT_CREATE for transaction MB01.
I have one problem while passing the value in BAPI.
Goods receipts for Schedule Agreements are not allow for delivery schedule lines with delivery date in the future.
Manual turn around for transaction MB01 is to check field "Suggest Zero Lines" from main selection screen:
I am not able to get the field name in BAPI for filling the value for check field "Suggest Zero Lines".
Kindly help me to find out the field name.
Thanks in advance.
Piyush Mathurdata flag(1) value 'X'.
set parameter ID 'NUL' field flag.
u can set the parameter 'Suggest zero lines' as 'X' by default and then call ur bapi..see if tht field is X now or not?
otherwise it can be possible tht u r not using the correct BAPI
amit -
User Exit for VA01 and VA02 transaction codes
Hi,
I am writing a userexit for PO number checking for VA01 and VA02 transaction codes.The PO number should be unique in the table (vbkd-bstkd).Duplicate PO number entries can be checked with Sold-to Party.If anybody written something like this....please advice me...
Thanks in advance.
fractalHi Fractel,
Why are you looking for a user exit to do this duplicate PO check?
This can be achieved through configuration of your sales order document type and message control. Follow the path below for configuration of the document type.
Implementation Guide for R/3 Customizing (IMG)
-->Sales and Distribution
-->Sales
-->Sales Documents
-->Sales Document Header
-->Define Sales Document Types
Once you execute this node, you will see all the available document types. Select the one you are interested in and click the details icon. In the subsequent screen, under "General Control" section, there is a field "Check purch.order no". Pick the value 'A' from the drop-down list.
Once you do this, system will check for duplicate PO numbers whenever you are creating or changing the sales order with that document type. If duplicate, it issues a message. -
FM / BAPI for FBR2 transaction.
can anyone tell me
FM / BAPI for FBR2 transaction.Dear:
Please check
BAPI_ACC_DOCUMENT_REV_CHECK
Regards -
Is there any BAPI for FBS1 Transaction
Hi,
Is there any BAPI for FBS1 transaction instead of using BDC.
Regards,
AravindHi Aravind ,
I'm afraid that it's not possible to do it through BAPI ( because of he specificity of this txn ), you have to use either RFBIBL00 or your own BDC.
Hope this helps,
Erwan -
Average response times for VA01 and VA02 transactions
Hi,
we have some users complaining about response times, more specific for VA01 and VA02 transactions. We would like to compare our average response times to those of other companies in order to get an idea of what is acceptable to most companies. If you are willing to contribute, can you please send a few hours of STAD data (only for VA01 and VA02 transactions) of an average working day? Perhaps you can download the data into a spreadsheet and mail the zipped file to my account Many thanks.
Best regards,
Guido Van LeuvenHi,
This is not the issue. We are investigating everything possible to improve our response times and we believe that that these are ok as well. We just want to build a case where we can prove that our response times are not worse than those at other companies and that we can do only by comparing those statistics.
Best regards,
Guido Van Leuven
Maybe you are looking for
-
Hope someone can help with my email settings. I have 2012 MBA, iphone5, and ipad4. I am using Comcast email through Mac Mail. I realize the Comcast email does not support IMAP, and does not completly sync with all devices, and maybe that is some of t
-
Is Prompted (Case When Statement)
I created a column in an answers report and used a CASE WHEN statement as the formula. I set this column to an Is Prompted filter. But when i try to run the report from the dashboard prompt, it just ignores this filter. What am i doing wrong?
-
Hi all, I created two users with following commands after login in SYSTEM CREATE USER ABC IDENTIFIED BY pwd ; GRANT CONNECT,RESOURCE,DBA TO ABC; CREATE USER xyz IDENTIFIED BY pwd ; GRANT CONNECT xyz; I want to give previlages of only select on the da
-
Compatiblity check for DB2E 8.2.4 with SAP MI Client 2.5 SP 20
Hi all, We are developing a mobile sales application for CRM using xapps MSAHH 5.0. We are using SAP MI 2.5 SP 20 and DB2E 8.2.4 . We have configured the backend for activity related data, but when try to run the application on client it is giving a
-
Execute Process Task :Executing DOS Command lines in Execute Process Task
Hi All, I am trying to sftp files using Tectia Client from my local system. For that I have used the Execute Process Task in SSIS. First I open DOS command and try to instantiate the sftp3.exe. Then I write down the below command binary open username