BAPI for Sales Order item availability check
hi all !!!!!!!!!
May I know how to force SO item to perform AV check?
What BAPI or function should I use (In custom program, not user-exit)?
I use BAPI_SALESORDER_CHANGE to insert or update schedule lines but the confirm qty is always zero!!!! When I go into the SO to click the "Item Availability" manually, the AV check is run and qty is confirmed
I am using product allocation
thanks
Hi,
Could you please tell me how to use ISM_ITEM_FCODE_AVAILABLE_CHECK?
I can't find any document of it
I am using BAPI_SALESORDER_CHANGE in Z-program.
I need to call ISM_ITEM_FCODE_AVAILABLE_CHECK after calling BAPI_SALESORDER_CHANGE???
Thanks in advance
Similar Messages
-
Sales Order - Item Availability Check
Hi All,
Currently I am doing some integration work between SAP B1 and another ERP system. The inventory data is maintained in the other ERP system and not in SAP B1. When I create a Sales Order in SAP B1, I need to replace SAP B1's default Item Availability Check with a customised routine. Is there a way to trap the action and replace it with my own customised check using the UI/DI API?Hello,
I have made something like that, to replace the defaut Check by one that check purchase order shipping date.. Here is a exemple code for trapping :
You must place it in SBO_Application_ItemEvent
if ((pVal.FormTypeEx == "139") & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE) & (pVal.ItemUID == "38") & (pVal.ColUID == "11") & (pVal.Before_Action == true) & (pVal.InnerEvent == false))
CheckAvailability();
Don't forget to disable the SBO Check Availability in the document's config form.
Sorry for my poor english and good luck
Chris.
Message was edited by:
Christophe Vuignier -
I'm looking for BAPI, which returns all items for sales order.
Returned items must have included all information, which we can see in transaction va02 on card Item Overview
I'll reward with points for good BAPI.
BR TomekIn the i_bapi_view structure, populate which tables you would like to have returned by using a value of X.
Use the sales documents table to pass which documents you want information on.
So if you wanted item details:
i_bapi_view-item = 'X'.
sales_documents-vbeln = '0000012345'.
append sales_documents.
call function 'BAPISDORDER_GETDETAILEDLIST'
exporting
i_bapi_view = i_bapi_view
tables
sales_documents = sales_documents
order_items_out = order_items_out. -
Hi Experts,
I want to select all sales order items in my ABAP-Program like in Ta VL10C. Any idea ? BAPI ? Funktion ?
Thanks for support.
Regards,
DavidHello,
You can try the below BAPIs.
BAPI_SALESORDER_GETLIST
BAPI_SALESORDER_GETSTATUS
BAPI_SALESORDER_GETDETAILBOS
BAPI_SALESORDER_GETLISTBOS
Thanks and Regards,
Venkat Phani Prasad Konduri -
Function Module or BAPI to update Short text for sales order item(vl02n)
Hi All,
I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
Does any body know any Function Module or BAPI which can accomplish this purpose .
Or else writing BDC is the only option I have got ? .
Please clarify .
Thanking you in advance .
With Regards,
Suriya .Hi
You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
Regards
MD -
Wrong short text for sales order item
Hi guys,
I have an issue for the short text for sales order item. It is werid that I get the different short text depends on how we enter the material. If we only enter the material #, we get the short text for sales order item from material master data. If we enter the material #, plant and storage location, we get the short text for sales order item from customer material infor record. However, the customer material infor record is only maintained for inter-compnay transaction. System should not pick it for third-party transaction.
I found a code in FV45PFAP_VBAP_FUELLEN:
Bei Primärbedarfen ist MAAPV-ARKTX nicht relevant
if vbak-vbtyp ne vbtyp_pbed.
vbap-arktx = maapv-arktx.
endif.
Kundenmatinfo hat höhere Priorität
if knmt-postx ne space.
vbap-arktx = knmt-postx.
endif.
if da_arktx ne space and
svbap-tabix = 0 and
vbapin-matnr = vbap-matnr.
vbap-arktx = da_arktx.
endif.
But it is nothing customized. Who can tell me what is wrong here?
Thanks,
DLHi,
Text coming from source (MMR, CMIR etc.) is being "pulled" via the access sequence. Check the Text analysis in your sales order in Tab Texts, at item category level. -
BOM Cost Estimate for sales order items
Hi experts,
Which data source could extract data created by CK51N (Order BOM Cost Estimate )? We need to get BOM Cost estimate (including input material and activity) for sales order items.
The closest one is 0CO_PC_01, but it extracts itemizations for production order.
It's urgent.Helpful answers would be awarded.Thanks.
Regards,
AaronHi Henry,
They even do not have Sales Order segment. How could I get cost estimate data based on sales order?
Regards,
Aaron -
RFC/BAPI For Sales Order Credit Block Release like vkm3 (very urgent )!!
hi experts,
I need the RFC/BAPI For Sales Order Credit Block Release like vkm3 function ,please help
thanks
Godspeedhi
can get the list of all the bapis..
http://www.planetsap.com/LIST_ALL_BAPIs.htm
Reward if USeful
Thanx & regards.
Naren.. -
Transaction to maintina Billing Plan for Sales order item
Hi All,
Is there any transaction other than VA01/VA02 to maintian Billing plan for Sales order item.
Thanks & Regards,
Rajanidhi Rajasekeran.It is possible to maintain Billing Plan in Sales Document Type (VOV8), as well as Item Category level (VOV7). As you want it at Item level, maintain the same in Item Category Configuration at Item level & it will by default be captured in Sales Order at Item level.
Step 1: Sales Document Type
IMG > Sales and Distribution > Sales > Sales Documents >
Sales Document Header:
1. Sales Document Type:The sales document types represent the different business transactions, such as Inquiry, Quotation, Sales Order, etc. To create new sales order type, always copy as with reference to similar sales order. If possible use standard sales order.
2. Define Number Ranges For Sales Documents: Maintain number range with discussion with core team.
3. Assign Sales Area To Sales Document Types:
A. Combine sales organizations / Combine distribution channels / Combine divisions: Ensure to maintain these, else Sales Order creation will give error.
B. Assign sales order types permitted for sales areas: Assign only required Sales Order Types to required Sales Area. This will minimize selection of Sales Order Type as per sales area.
Sales Document Item:
1. Define Item Categories: If possible use Standard Item Category. Incase if required to create new, copy as from standard & maintain New.
2. Assign Item Categories: If possible, use standard. Formula for deriving item category: Sales Document Type + Item Category Group + Usage + Higher Level Item Category = Item Category
Regards,
Rajesh Banka -
Surcharge rate for sales order item condition
Hi,
I have a two condition for sales order item.
First condition is ZP00-Price. It is using for automatically price with customer and material. It linked with account key in pricing procedure.
Second condition is ZI00-Index rate. Calculation type is A-Percentage. This condition value is monthly. It will be used for surcharge with percantage . I have a formule this condition.
It is not linked with account key in pricing procedure.
Formula for ZI00 - Index rate:
(Index Rate to delivery date - 1 / Index Rate to contract start date) x 100
For example;
Index rate conditions is entrying monthly;
Index date Index%
01.08.2008 1,05
01.09.2008 1,15
01.10.2008 1,17
Contract start date = 03.08.2008
Delivery date = 02.10.2008
ZP00 = 500
ZI00 = Index rate for sales order item = ((1,17-1)/1,05 ) * 100 = 16,19
Last condition value = 500 + (500 * 16,19)/100 = 500 + 80,95 = 580,95
What can I do for this pricing?
Best Regards
Gulay CelikHi
I think that perhaps it is too late. The application supports cancellation and re-billing as separate transactions. Maybe this is not a 'development' problem.
Cheers
Dom -
Sales order item Qty check with sale plan qty
Dear all
How its poosible - While creating sales orer system should check sales order item qty, delivery date with sales plan qty for that period. If total sales order requirement qty greater than sales plan qty then system should give error msg. System not consider stock & inward / outward mvt . only check plan qty.
in details
1> Create Weekly sales plan - w.r.t Material & Plant - ( T code u2013 MC87 )
Eg . Material - FG001 , Plant 1001 , Week 11.2011 - 2000 Kg
2> Now creating sales order . system check sales order item qty & plan qty as per delivery date or week
Eg . i> Sales order no. 1 - delivery week u2013 W 11.2011 , item u2013 FG001 ; Plant u2013 1001 ; Qty u2013 1500 kg
Requirement : System check u2013 delivery week u2013 11 according to that sales plan qty for that material & plant is 2000 kg ;
total actual Sales order qty = 1500 kg . so condition is fulfill system allow to create sales order.
Eg. ii> Sales order no. 2 u2013 Delivery week u2013 11.2001 , item u2013 FG001 ; Plant u2013 1001 ; Qty u2013 1000 kg
Requirement : System check u2013 delivery week u2013 11 according to that sales plan qty for that material & plant is 2000 kg ; total actual Sales order qty = 1500 + 1000kg =2500 kg . so condition is failed , ( sales requirement qty > sales plan qty ) system should not allow to create sales order, gives error msg.
Thanks & Regards
PramodHello,
I have made something like that, to replace the defaut Check by one that check purchase order shipping date.. Here is a exemple code for trapping :
You must place it in SBO_Application_ItemEvent
if ((pVal.FormTypeEx == "139") & (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE) & (pVal.ItemUID == "38") & (pVal.ColUID == "11") & (pVal.Before_Action == true) & (pVal.InnerEvent == false))
CheckAvailability();
Don't forget to disable the SBO Check Availability in the document's config form.
Sorry for my poor english and good luck
Chris.
Message was edited by:
Christophe Vuignier -
How to do INIT for Sales order Itema Data (DS 2LIS_11_VAITM)
Hi all
I have a report on sales order item data, I have to reload it. DS 2LIS_11_VAITM
Can any of you pls explain me the steps to do the INIT? Refill set up tables etc
Many Thanks in advance
IshiHi Hari
Many Thanks for the explanation and steps. I deleted set up tables and executed to fill it.
It says in R/3 Start of Processing, I ticked to continue and its still running.
In the mean time I checked RSA3 and it says 1007 records selected. I am refreshing it and the no. of records are still the same.
Can you tell me how long it takes to fill the table?
And the R/3 system is still running (Start of Processing)
Thanks again
Ishi -
Regarding bapis for sales order creation and modification
Hi,
I am trying to create a syncbo for sales order creation, modification and display. The bapis that I am using are
1.BAPI_SALESORDER_GETLIST
2.BAPISDORDER_GETDETAILEDLIST
3.BAPI_SALESORDER_CREATEFROMDATA1
4. BAPI_SALESORDER_CHANGE
Am I using the correct bapis. When I tried to create a syncbo it gave the following errors
BAPISDORDER_GETDETAILEDLIST does not have RETURN parameter in export or tables parameter
RETURN parameter in Create BAPI Wrapper should refer to structure BAPIRET2
RETURN parameter in GetList BAPI Wrapper should refer to structure BAPIRET2
GetDetail BAPI Wrapper does not have RETURN parameter in export or tables parameter
No Export parameter referring to header structure exists in GetDetail BAPI Wrapper
No Import parameter referring to header structure exists in Create BAPI Wrapper
No Import parameter referring to header structure exists in Modify BAPI Wrapper
No Import parameter referring to a field of header structure exists in GetDetail BAPI Wrapper
No Export parameter referring to a field of header structure exists in Create BAPI Wrapper
No Tables parameter referring to item structure exists in Create BAPI Wrapper
No Tables parameter referring to item structure exists in Modify BAPI Wrapper
I am informed that the above bapis are standard bapis.
I am not sure as to why I am getting the errors.
Does the syncbo require the bapi's to be in a specific format.
What would be the header and item structures for sales order bapis
Regards
Raja SekharHi Raja,
ya , for creating Sync BOs ,our BAPI wrappers must satisfy certain conditions..
just go through this link.
u can use the standard BAPIs of SALES Order in ur Custom BAPI Wrapper
http://media.sdn.sap.com/public/html/submitted_docs/MI/MDK_2.5/content/appdev/smartsync/what_is_a_bapi_wrapper.html
the RETURN must be of type BAPIRET2..
Regards
Kishor Gopinathan -
Update Pricing elements for sales order item
Hello All,
I want to add few manual pricing elements to a sales order item through code (the pricing elements to be added will be determined dynamically). Is there any BAPI or user exit to update the same?
Regards,Hi
You can use the BAPI_SALESORDER_CREATEFROMDAT2 for creating the sales order.Using this you can populate the pricing conditions for sales order. To pass the Pricing conditions use the str ORDER_CONDITIONS_IN & ORDER_CONDITIONS_INX in BAPI.
Regards,
Raghu. -
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.
Maybe you are looking for
-
I have someone writing the CGI scripts for my forms, but once he puts his code into my Dreamweaver designed HTML, DW has trouble displaying them. I usually get a div or td tag in yellow but have a lot of trouble adjusting the code to make DW display
-
We are currently outsourcing 3rd party payroll to ADP. Master Data and Time Wage Type IDOCs are transmitted. After payroll processing, G/L data is downloaded through ADP Infolink G/L interface website as a .csv file. We want to receive G/L data back
-
I am a PC user - bought my 1st Mac today. Was trying to download a VLC player for my movies but i can't open files when i download them. I tried downloading winc=ace - but it came in an exe file as well and it just opens as a word file of computer la
-
In an interview situation ...
are you , as an interviewee, better to explain the structure/design of a project you have worked on by drawing on a whiteboard or just trying to talk your way through it. Point being, if I was the interviewer I would prefer see a person sketch a diag
-
Safari and Exchange seem to "fall out' aafter a time of inactivity.
When first connected all works OK. Then after a period of inactivity both Safari and Exchange just show loading then some time later show 'Not connected to The Internet". ISP advises me I am. Can get service by either rebooting or running diagnostics