BAPI to add items before document creation in FI
Hello!!
I need to add 2 items to a document that is being created in transactions FB01 or f-53 (but, hasn't been created yet). I need to know if there is a bapi that I can call in an User Exit before the document is created?....
Thanks.,
Marina Mora
Hi Mora ,
which Version of SAP u are using ?, based on that we can add value.
Regards
Peram
Similar Messages
-
BAPI to add item and its net price while creating opportunity
is there any BAPI/FM through which i can add item and its net value to opportunity in CRM.
Kindly help.
Regards
Sachin YadavYou can give a try with Customer Function like EXIT_SAPLMCB1_001
-
DataProvider add item before or after selected row
Hi, guys,
As we know, we may add an item to a data grid by just call
dg1.dataProvider.addItem(x:object)
I wonder if there is a specific function like addItemAt(x:object, y:int) which takes an additional index number as parameter
Eventually, users wanna add a new row before or after the selected row in the data grid.
Thanks!
AlexArrayCollection subclasses ListCollectionView. ListCollectionView contains the function you are looking for , addItemAt( object:Object , index:int ).
Sincerely ,
Ubu
If this answer was helpful , please mark it as such. -
How to used BAPI_SALESORDER_CHANGE to add items
Hi, I am trying to use the above bapi to add items to a sales order, but I can't get the qty to map across. I had the same problem using the create bapi whcih I resolved by populating the schedule tables, but in change this just causes an "unhandled exception" to occur, so i can;t even step into the FM to see the problem. Has anyone got any ideas.
s_header_inx-updateflag = 'U'.
* set item data
s_items-itm_number = s_stock-item_no.
s_items-material = s_stock-material_no.
s_items-target_qty = s_stock-quantity.
s_items-target_qu = s_stock-uom.
s_items-ref_doc = s_stock-agreement.
s_items-ref_doc_it = s_stock-agreement_item.
s_items-batch = s_stock-batch.
s_items-plant = s_stock-plant.
s_items-store_loc = s_stock-storage_location_no.
append s_items to it_items.
* set flag to add items (I)
s_itemsx-updateflag = insert.
s_itemsx-itm_number = s_items-itm_number.
s_itemsx-material = abap_true.
s_itemsx-target_qty = abap_true.
s_itemsx-ref_doc = abap_true.
s_itemsx-ref_doc_it = abap_true.
s_itemsx-batch = abap_true.
s_itemsx-plant = abap_true.
s_itemsx-store_loc = abap_true.
append s_itemsx to it_itemsx.
s_sched-itm_number = s_items-itm_number.
s_sched-sched_line = '0001'.
s_sched-REQ_DATE = sy-datum + 30.
s_sched-req_qty = s_items-target_qty.
append s_sched to it_sched.
* set flag to add items (I)
* s_schedx-updateflag = 'I'
s_schedx-itm_number = s_items-itm_number.
s_schedx-sched_line = '0001'.
s_schedx-REQ_DATE = 'X'.
s_schedx-req_qty = abap_true.
append s_schedx to it_schedx.
* Now call the BAPI to add the items
call function 'BAPI_SALESORDER_CHANGE'
exporting
salesdocument = me->number
* ORDER_HEADER_IN =
order_header_inx = s_header_inx
SIMULATION = ' '
* BEHAVE_WHEN_ERROR = 'P'
* INT_NUMBER_ASSIGNMENT = ' '
* LOGIC_SWITCH =
* NO_STATUS_BUF_INIT = ' '
tables
return = it_return
order_item_in = it_items
order_item_inx = it_itemsx
* PARTNERS =
* PARTNERCHANGES =
* PARTNERADDRESSES =
* ORDER_CFGS_REF =
* ORDER_CFGS_INST =
* ORDER_CFGS_PART_OF =
* ORDER_CFGS_VALUE =
* ORDER_CFGS_BLOB =
* ORDER_CFGS_VK =
* ORDER_CFGS_REFINST =
order_schedules_in = it_sched
order_schedules_inx = it_schedx
* ORDER_TEXT =
* ORDER_KEYS =
* CONDITIONS_IN =
* CONDITIONS_INX =
* EXTENSIONIN =hi,
BAPI_SALESORDER_CHANGE didn't work for me either though i'm 100% sure the bapi works
See SAP note 366265 which tells you how to fill the structures but
you can use your program which you used to create the sales order to change the order and all you need to
do is change a few parameters
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN = P_VBELN
ORDER_HEADER_IN = ORDER_HEADER_IN
ORDER_HEADER_INX = 'U'
(make sure your partners are blank, otherwise you'll get a duprec on VBPA)
-( PS , yes, i;m saying , see if BAPI_SALESORDER_CREATEFROMDAT2 works for you)
I hope this helps
Paul Q
Edited by: Paul Quinn on Jun 2, 2011 11:10 PM -
Add or Delete Line Item in Billing Creation (VF01)
Hi,
During the billing document creation (VF01) for Order-Related Billing (example: Doc Type F5 - Pro Forma for Order), can you
manually add or delete line items?
Let's say if Sales Order was created with 3 line items and only 2 line items should be included in Billing Doc F5. During the
billing document creation (VF01), it automatically copies all 3 line items. How can I delete the line item that I don't want
to be included in Billing Doc F5? Only way that I know is to put a billing block on Sales Order item so it won't automatically
copied into a billing document. But this process is inconvenient. After F5 document is created, my user will then need to
remember to go back to Sales order and remove a billing block from that line item.
Also vice verse, can an item be manually added to a billing document during the creation mode (VF01)? Is there somewhere
in the configuration that I can change to allow this? Or is it a standart SAP practice all items on a billind document have to
be Order or Delivery-Related?
Thanks,
MichelleHi,
While creating the invoice via VF01. Please go to selection list icon. this will take to you another screen. here you can select the line item you want to copy/bill.
Please try and let us know.
Thanks,
Vishal -
The RFX before upgrade does not allow me to add items from catalog
hello gurus
I have a problem with the RFX, we did an upgrade to SRM7.0 from SRM5.0.
The RFX that existed before upgrade in the server does not allow me to add new items from catalog.
each RFx I created after the upgrade works fine.
My client needs to work with the RFx still open, add items and make bids.
I have reviewed the upgrade guide and found nothing regarding an update of purchasing documents.
I have
SRM 7.0 SPS03 EHP1
MDM 7.1 SP06
MDM catalog 3.0SP10in SRM 5.0 the system was MDM catalog. Actually, after the upgrade , i have SRM7.01 with MDM catalog.
i donn´t know if it is about version, SP or compatability issue, but i believe the upgrade not affect the purchaser documents.
Those look as locked to modify. on tap Position, the buttom ADD LINE, only i can see Position, not anymore option like MDM catalog, free text.
it is a big problem, because the client has documents opened. i need to resolve this issue. Actually i am working in a sandbox system, but i afraid to have the same problem in PRD system after upgrade.
regards -
How to create matreial document for ten line items (10 documents) by BAPI
Hi
how to create matreial document for ten line items (10 documents) by BAPI_goodsmvt_create
i created but it gives error as "no ites were transferre
and i need code also.
thanks in advancePrabhu Peram wrote:>
> >
Gareth @ Atos Origin UK wrote:
> > Prabhu,
> >
> > You have been on SDN a long time and have a decent amount of points - why do you feel the need to simply cut and paste standard SAP documentation? _-----> I least bother abt the Points, and i never ask somebody to give points to me , if u have any doubt on it , u can check all my postings ? All it does is fill up the SDN servers with replicated data which the original poster could quite easily access themselves via SE37----> Sorry I have seen ur Posting/Reply,dont assume that i do copy & paste for sake of Points.Njoy SAP.>
> > Gareth.
>
>
>
> regards
> Prabhu
Prabhu.
I didn't question you about points at all - I was making the point that you have been on SDN a long time and have a lot of points. Therefore you should know better than to simply cut and paste standard SAP help. If you don't copy and paste for sake of points, what do you do it for? It serves no purpose other than to fill up the servers here on SDN. The original poster appears to have access to a SAP system and SE37 and wants to know how to call a BAPI - they can easily go to SE37 and read the documentation themselves. Posting it here just adds noise and makes searching harder, as well as taking up more and more space on SDN servers.
Gareth. -
How to use Add Shipments functionality in Shipment document creation
Dear All,
We wanted to use the Add Shipments functionality in the Shipment document creation / change.
We have two different shipment types.
I want to add shipments of one shipment type in to Shipment document of anohter shipment type.
I am not able to do it now as system is saying in the selection log that the shipment types are not same.
Please let me know what are the pre requisite configurations to enable us to add shipments in to another shipment.
Please let me tknow he standard functionality of "Add Shipments option" and how to use it to add shipments in a Shipment
Regards
VenkatHi Venkat,
The option "find shipments" is provided to select the shipments to reassign or deassign the deiveries etc in VT01n or VT02n
transaction planning screen. Basically you can play around to assign and reassign the deliveries to different shipments
This option is not creating the shipment within shipment. It is just selection of shipments for planning purposes
Hope this helps.
Regards,
Ramana -
Inclusion of line items before previous document due date passed
Hi All,
I am having below mentioned scenario:
1. I am invoicing a consumer in Aug-14 with periodic billing order. Document is having due date of 10-Sep.
2. Further I am doing interim billing and invoicing (before previous document due date expired) with posting date say 05-Sep.
The recent document of 05-Sep is not including all line items of document invoiced in Aug-14.
How do we include Aug-14 bill line items in next invoicing.
SaurabhHi,
If you are not using Integrated Account Maintenance, under "Item Selection for Bill printout (Subitems)" it should be as easy as leaving Open Items Selection restriction blank - meaning "All open items for contract acct (w. and w/o ref. to cntrct)", setting the "Interval days for the due date of items to be printed" to 999, and choosing the "Consider Items in Bill Sum Total" setting - once or always, I believe. If it doesn't work, I'd be looking at FQEVENT R410 FMs to see if the Items are passed that far.
<rant on>I can't to this day get how come so many Utilities (in my experience - all I've worked with) practice this "double" or even multiple billing of the same amounts (even if the amounts do not multiply in FI-CA postings, you have invoiced the amounts to customer multiple times). Or rather - nobody has been able to tell a valid and irrefutable reason, why things need to be done that way - it's usually "that's how we have always done it" reason. The accounting people don't even care that the previous invoice remains valid in the system (as long as their precious FI-CA postings do not multiply), because there is nothing in IS-U that automatically reverses or invalidates it... And I don't get why the regulators even permit it...<rant off>
cheers
Jānis -
BAPI/FM to add Items to Handling Unit
Hello Gurus,
Is there any BAPI/FM to add Items to existing HU.
I could see many existingBAPI's like
V51F_CHANGE_HU_ITEM,
HUINV_ITEM_CHANGE,
HU_ITEM_CHANGE
but none has helped me as such and it goes into some kind of error.
Hence it would be great if someone provides me code/mandatory inputs as well.
Functionally speaking one can add items to existing HU by HU02 transaction and pack the same.
Thanks,
Vikram.Hi Vikram,
This link may be helpful...
[Creating Handling Unit;
Regards,
Sachin M M -
Add Item category in Transaction variant on document splitting config
Hi guru
In configuration Document splitting I add Item category 04000-cash account in Transaction variant 0300-vendor invoice
I can save it but i recheck item category 04000 disapper from trasaction variant , How I can add it .
Thank you very much.Hi,
Cash Account 04000 is not required to be assigned to Vendor Invoice 0300 or Customer Invoice 0200 rather it should be assigned to Business Transactions 0000, 0400, 0500, 1000 and 1010.
Regards,
Sanjay -
Bapi - function module Measure document creation
Hi All,
I need to know the bapi function module which is used to create the measure document creation in IK11 transaction.
Points will be awarded.
Thanks and Regards,
vinoth.Hi,
Try the following BAPI/Fun Modules:
BAPI_MPID_CREATE
BAPI_MP_DATED_CREATE
Regards,
Anji -
Exclude items at billing document creation
Hello everyone,
Our team receive the follow user request: at the moment of billing document creation, exclude all itens from delivery where quantity is igual zero.
What's the best approach, use user-exit at VF01 to exclude all itens with quantity=zero or try to find some customazing (SPRO) to do that?
Are there someone that had the same problem or like that? Is it prossible to do that by customizing?
Thanks!
FlávioYou should be able to do it using config. Follow the path
Implementation Guide for R/3 Customizing (IMG)
-->Sales and Distribution
-->Billing
-->Billing Documents
-->Maintain Copying Control For Billing Documents
-->Copying control: Delivery document to billing document
Here select your source delivery type and the target invoice type. Then click on 'item'. Select the appropriate item categories and do a display. You can play with the settings there to exclude the items that you don't want in the invoice. If nothing from standard settings work for you, you can still use the 'copying requirements' field to enter your own requirement there.
Srinivas -
Get previous items unique value in new add item form
Hi
I have on list having items related to multiple locations.
Every location is related to one user.
When user logs in it filters the list with that users location.
Now when user click on add new item I want to get the data related to his location using item event listener.
But in new item form there is no way to get the location of that user in event listener as its new item.
So I passed the qury string parameter form list and changed the add item form link and form to get the query string paramter as default value in Add new Item form.
But again when user clicks on save button it redirects to original url without paramter.
How to redirect user to url with parameter on click on Save/Cancel.
Is there any other way to get the previous item unique value in add new item from before executing the event listener?Hi,
According to your post, my understanding is that you wanted to redirect user to url with parameter on click on Save/Cancel.
You need to modify the onclick event need to as below:
javascript: {{ddwrt:GenFireServerEvent('__redirect={{Home.aspx?Participant={@Participant}&@Activity={@Activity}}}')}}
Here is a similar thread for your reference:
http://social.technet.microsoft.com/Forums/en-US/b506cfe5-650e-4017-b470-9ca0a75cd390/sharepoint-2010-list-how-to-pass-parameters-in-a-url-to-another-page?forum=sharepointcustomizationprevious
In addition, you can creating an intermediate page which just finds the filed value with a DVWP and then redirect to RedirectURL with the filed value on the Query String.
For more information, you can refer to:
Redirect to Another Page from NewForm.aspx with the New Item’s ID
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Cannot add item in A/P Invoice
Hi, all,
I want create a A/P invoice without copy from PO or GRPO. However, after I input BP Code, I am not able to add item in Matrix row. Seems that it is blocked
Any ideas?
ThanksHello kimmycheng,
The marketing document can be of 2 types ..Item or Service...this is indicated by the Item / Service type drop down just above the matrix/grid
If you want to add an Item..this drop down should be set to Item. If it is of type Service then you might not see the ItemCode column.
If does not reflect / help what you are referring to ....then please explain your issue ina bit more detail
Suda
Maybe you are looking for
-
My apps will no longer update as the page will not load, I really don't understand why this is as the rest of the app store works perfectly.
-
Setting the number of consumers for a topic
Hi, I have a topic connection factory from which I can creating 2 topic connections and setting different clientids for each connection to one topic.But I get a error com.sun.messaging.jms.ResourceAllocationException: [C4073]: A JMS destination limit
-
Mouse hover drop down menu not shown
recently (about few months ago), i found the profile drop down menu on www.zhihu.com no longer works. i also noticed that other mouse over funtions are disabled too. oddly, the problem only seems to appear on firefox on my laptop. other browsers on t
-
Sync iTunes Playlist with other Mac
Hey everybody!! I have an iMac with a 20.000+ Song Music Library which I do most of my work on. I also have a 128GB macbook air which I use for DJing. Is there any way that I could wirelessly sync the playlists I make on my iMac with my Macbook Air?
-
Need Pivot Table to hide only the rows in the table, now the entire sheet.
Hello, I have an basic pivot table (account type, account number, location, fees assessed) and wish to have a small summary table a couple of columns to the right of the data in the pivot table. Is there a way to be able to have the pivot table onl