BAPI_SALESORDER_SIMULATE & AFS 6.0
Hi experts:
Iam currently involved in an AFS migration from v3.0 to v6.0, and I,ve found an include that uses BAPI_SALESORDER_SIMULATE.
The problem is that in the old code we use the
order_sizes_in and order_sizes_out tables of this BAPIand I can´t find the correct BAPI to replace the old one :
CALL FUNCTION 'BAPI_SALESORDER_SIMULATE'
EXPORTING
order_header_in = le_order_header_in
IMPORTING
return = le_return
TABLES
order_items_in = lt_order_items_in
order_partners = lt_order_partners
order_items_out = lt_order_items_out
order_schedule_ex = lt_order_sched_ex
messagetable = lt_return
order_sizes_in = lt_order_sizes_in
order_sizes_out = lt_order_sizes_out
order_condition_ex = lt_order_conditions.
I`ve found the /AFS/BAPI_SALESORD_CREATEFDATA, but these two tables don´t have equivalent ones.
Does anybody know a solution to this problem
Thanks in advance for your help.
Hi again:
The question is to find the way to do the same as before, doesn´t matter if i have to use one or more FM.
It´s VERY importan to solve this problem as soon as possible
Thanks for your help.
Similar Messages
-
Hi!
I need report similar to /AFS/MD04 AFS stock req list but for all material of one sale order on onew screen.
User want to see statuses for allpositions of order at one time to make decision about delivery.
any standart report?
Andrey Garshin.Hi Andrey,
I don't see a benefit from seeing statuses in a sales order.
/AFS/MD04 is a stock/requirements list for the MRP conroller.
It does a complete different calculation than ARUN or ATP.
It will not help you to determine what can delivered.
You can have orders in B status and still be able to allocate and deliver it.
So explain your business requirements. What do you want to see?
Best Regards,
Markus
Edited by: Markus Doerr on Jun 8, 2010 10:16 AM -
Table for temporarily stock /requirement for tocde /afs/mdo4
Dear expart,
I developed a zreport for display STO number, Production order number, operation etc.
mainly I use here AFPO,AFRU, MSEG, MCHB & J_3ABDSI Table.
My problem is, when I compare with Tcode /afs/md04 tab-temporarily stock /requirement .
for some MATNR
data show properly.
and some MATNR are blank with message Last MRP run on 04.04.2011 or such date.
Hhow i can filter the in Z-report which MATNR are not in Tcode /afs/md04 tab-temporarily stock /requirement .
my code is.
SELECT j_3abdsiaufnr j_3abdsimatnr j_3abdsij_4krcat j_3abdsimbdat j_3abdsi~menge INTO TABLE it_eket FROM j_3abdsi
FOR ALL ENTRIES IN it_final1
WHERE
j_3abdsi~j_4krcat = it_final1-j_4ksca AND
j_3abdsi~matnr = it_final1-matnr AND
j_3abdsi~werks = it_final1-werks AND
j_3abdsi~bdart = 'TB' AND
j_3abdsi~plart = 'B' AND
j_3abdsi~bsart = 'UB'.
Pls help .
Rayhan
Edited by: Abu Rayhan on Apr 5, 2011 10:24 AMCLEAR i_data1.
REFRESH i_data1.
LOOP AT i_mara.
READ TABLE i_marc WITH KEY matnr = i_mara-matnr BINARY SEARCH .
IF sy-subrc = 0 .
CALL FUNCTION 'J_3AM_DISPOSITION_DISPL'
EXPORTING
i_matnr = i_mara-matnr
i_werks = p_werks
I_DIALOG = ' '
I_SPERR = ' '
I_AUFRUF = ' '
I_BANER = ' '
i_todate = todate
I_HEADER_ONLY = ' '
IMPORTING
ex_dbba = i_data3
E_MDKP =
EX_PBBD =
EX_MELD =
E_CM61M =
EXCEPTIONS
material_gesperrt = 1
wbz_fehler = 2
material_prgr = 3
dispo_gesperrt = 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.
ELSE.
IF i_data3[] IS NOT INITIAL.
LOOP AT i_data3 INTO i_data4 .
IF ( i_data4-j_3astat ='A' OR i_data4-j_3astat ='T') AND i_data4-j_3abskz ='C' .
READ TABLE i_t001l WITH KEY lgort = i_data4-lgonr BINARY SEARCH .
IF sy-subrc = 0 .
CLEAR i_data1str.
i_data1str-matnr = i_data4-matnr.
i_data1str-j_3asize = i_data4-j_3asize .
i_data1str-lgort = i_data4-lgonr.
i_data1str-menge = i_data4-menge .
COLLECT i_data1str INTO i_data1.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
ENDLOOP.
Questions
i_mara recordset 500 material
It take more than 3 house to finished this report.
do changed ?
do you help me ?
Think. -
Change of Item Categoy in Sales Order - AFS
Hi Gurus,
I am working on AFS. In the sales order for which delivery has not been created, system is not allowing to change the item category. From TAN to TAQ.
I have maintained the Manual item category in VOV4. Still the item category field in sales order is in grey mode.
Please let me now how to make it editable.
Regards,
Naren DevHi Naren,
Can you please check if that item has any associated Purchase Requisitions?
Standars SAP does allow change of item category if alternative item categories are configured and subsequent document are not yet created.
Thank you
Chaitanya -
Hi all,
Is there a way to pass material pricing group for each item to BAPI_SALESORDER_SIMULATE?I could not find any field in items structure that could accept material pricing group?I need the pricing conditions and credit card out details based on material pricing group while simulating a sales order?If there is any other way to achieve the purpose please let me know....
Thanks in advance...
SanthoshiHi Yoeri,
Thanks for your reply.But the field PRC_GROUP1 is price group(KONDA) but not material pricing group(KONDM).You can observe the difference in VA03 transaction in Item Overview->Sales B tab.They are two different fields Material Pricing Group and Price Group.
<b>Actual requirement is</b>:
I need to simulate a sales order using BAPI_SALESORDER_SIMULATE, and retrieve the pricing details and credit card details. Now the problem is i am unable to find a field which holds material pricing group, due to which the pricing details and credit card ammount details that are returned are having incorrect values.
I would appreciate if you could please help me out in solving this requirement.
Thanks in advance
Santhoshi -
Hi,
I have loaded data for the AFS based datasource 2LIS_AF_PABDSI of PP. But there is no data in the field -
J_3ARESM(reserved quantity) - only showing 0,000. Used RSA3 transaction to extract data.
I checked it after filling up the setup tables. Data is present for all other fields.
Using MB25 transaction, when I give a particular production order - it has reservation data.
But, no data is present for Reservation Quantity in 2LIS_AF_PABDSI.
Thanks & Regards
Shine Sasimohanan
+91-9632674245Hi
I think this standard datasource is not fit for this filed. J_3ARESM(reserved quantity) filed populate through J_3ABDSI this table try it once with z datsource mapping through
J_3ARESM- ZJ_3ARESM(AFS Fixed reserved quantity)
Hope its help.
By,
Praveen Yagnamurthy,
SAP BI Consultant,
Blue Marlin Systems-INDIA.
http://bluemarlinsys.com/bi -
End Routine to populate custom AFS field for Billing Item extractor
I have the following scenario for Billing 2LIS_13_VDITM datasource
Doc_No Item Material Item_Categ AFS_field
2000 11 XYZ 123
2000 12 XYZ 123 US1
3000 11 PQR 456
3000 12 PQR 456 CA1
I need to populate the AFS_field in the first row also for all Doc Nos for certain Item categories (eg 123 & 456). I need to do this on the first transformation from PSA to DSO. I was planning to write a SELECT statement in the Start Routine with the PSA table as the reference as seen below and then write an End Routine calling this reference table. But the PSA table name is different in Dev, QA and Prod so I cannot use this.
TYPES: BEGIN OF S_AFS,
VBELN TYPE C LENGTH 10,
PSTYV TYPE C LENGTH 4,
MATNR TYPE C LENGTH 18,
J_4KRCAT TYPE C LENGTH 16,
J_4KSCAT TYPE C LENGTH 16,
END OF S_AFS.
DATA: LT_AFS TYPE STANDARD TABLE OF S_AFS,
LS_AFS TYPE S_AFS.
DATA: LT_DATA TYPE tyt_SC_1.
LT_DATA[] = SOURCE_PACKAGE[].
SORT LT_DATA DESCENDING BY VBELN MATNR J_4KRCAT.
DELETE ADJACENT DUPLICATES FROM LT_DATA COMPARING VBELN MATNR.
SELECT VBELN MATNR J_4KRCAT J_4KSCAT
INTO CORRESPONDING FIELDS OF TABLE LT_AFS
FROM /BIC/B0000777001
FOR ALL ENTRIES IN LT_DATA WHERE VBELN = LT_DATA-VBELN AND MATNR =
LT_DATA-MATNR.
SORT LT_AFS BY VBELN MATNR.
I am not an expert in writing ABAP code. Any suggestions are greatly appreciated and points will be assigned. Thank you.Hi
why do want to select the data from PSA table ?Already your trying to load data from PSA to DSO.
you want to populate the AFS field value in DSO right?
1. First you have to add AFS field in ur DSO
2. Write the Start routine based on ur scenario(select the data based on ur scenario and put into internal table).
3. wirte AFS field leval transfer routine(Read the corresponding record based on docu num,item num) pass into RESULT.
Regards,
GR -
Open Purchase order (AFS)- LSMW
What is the message type and basic type used for AFS open purchase order or BAPI for LSMW.
Hello,
Business object BUS2012 Purchase Order
Method CREATEFROMDATA Create Purchase Order
Message type PORDCR Create purchase order
Basic type PORDCR04 Create purchase order
Best Regards, Murugesh AS -
Will MIM (Merchandize and inventory management) work with SAP AFS / SAP POS
We are implementing SAP AFS ERP at the head office and SAP POS at the retail stores.
We want to implement the MIM module for inventory management at retail store level. Does MIM work in conjunction with SAP AFS. A consultant was suggesting that MIM works only with SAP Retail and no other vertical SAP solution.
Can someone please clarify?
Regards
paddyMIM is linked to IS Retail, not to AFS.
Nevertheless, you can always link and AFS and a Retail system. SAP provides a very convincing ALE scheme for this.
Eric -
Hi all,
can someone give some explanation about the differences between a normal sale order in sd and a sales order in sd afs?
Do you have some documentations?
thanks in advanceDear CMM,
Please go through the link. It gives you an update on how the things are different in AFS.
http://www.sapafs.net/
Do let me know in case of any queries.
Hope this helps you.
Do award points if you found them useful.
Regards,
Rakesh -
AFS ship-to party problem in sale order
Hi!
We use AFS solution.
I use customer "0000087655" as sold-to party in sale order and try to set customer "0001000016" as ship-to party but get message
"Top node 0000087655 for ship-to 0001000016 not maintained or ship-to is not valid
Message no. 8W321"
How to Solve this error?
Thanks and Regards
SureshkumarEnsure that the ship to party 0001000016 is created with correct account group. Else change it via XD07.
thanks
G. Lakshmipathi -
i have to create an open slaes order in AFS, with multiple line items and then for each line item, there will be multiple schedule line items,,
can anybody help me with this,,
any sample program????Hi
If u're working in AFS, there are some special BAPIs here:
/AFS/BAPI_SALESORD_CREATEFDATA is to create the order in stead of BAPI_SALESORDER_CREATEFROMDAT2
Max -
How to display Base values (AFS Grid) in the Report
Hi Friends,
We ar using AFS, in that we have Grid value like 0003A34
(8 chars: first 4 chars colour (0003), A represents Cup, 34 represents size of the Material), in that we can able to store the Base values like for International or US,
and for size 34 equivalent to 70 like wise.
In our reports we are using ALV grids, and showing the existing grid value like 0003A34, but we need to show Base value list like INTL or US etc, based on the region / area, the report should show the equivalent grid value like 0003A70 etc.
Please help me how to do this.
Thanks
ShankarDear Shankar;
I think you will be able to achieve what you try to do using grid conversion in AFS. Base Grid values can be converted to other values based on the customer, vendor or material depending on your requirement. This need to be configured in IMG and then the ID must be assigned in the Vendor or the Material Master as per the requirement.
This is somewhat complex config. Please contact me if you need any more clarifications ([email protected])
Azwath Mohammad
http://www.sapafs.net -
Create a Sales Order with Reference to Contract using IDoc / LSMW ( AFS )
Hi Gurus,
I need to crate a Sales Order with reference to a Contract. I need to upload Sales Orders with reference to contract via LSMW.
So far, I've been able to create the Sales Order with ref to contract. But, the Sales Order Quantity is not getting deducted from the Original Qty in Referred Contract ( When try to create another Sales Order referring to the same Contract.) When a Sales Order is created manually, this is working fine.
Please tell me if I've missed some parameter which stopping it create the link to exact schedule line ( Sizes level )
The Details of the IDoc which is been created via LSMW are as follows;
Message Type: ORDERS
Basic Type : /AFS/ORDERS05
Process Code : ORDE / DELO
( Tried with both process codes. But the Identification is the same for both: IDOC_INPUT_ORDERS )
*_In Header;_
Segment : E1EDK02 - IDoc: Document header reference data *
Qualifier : '043' - Vendor Contract Number ( Tried with ' 005' - Customer Contract, but it's not working )
Contract Order is mapped for field BELNR
*_In Item;_
Segment : E1EDP02 - IDoc: Document Item Reference Data *
Qualifier : '043' - Vendor Contract Number ( Tried with ' 005' - Customer Contract, but it's not working )
Contract Order is mapped to field BELNR
Line Item of the Contract is mapped to field ZEILE
I also tried passing the Schedule line of Contract in Segment : E1J3P01 AFS IDoc: Doc.item general data
to following fields;
J_3AETENV
J_3AVGETE
/AFS/UETENR
Still its not getting updated in the VBEP also..
Please help me with regard to this. Points will be awarded for your valuable contribution.
Thanks.Hi,
This issue is been resolved.
One of my friend helped me with resolving this issue..
Once the below mentioned configurations were done on SPRO, the Sales Order was created with reference to Contract and the Qty was reflected when tried to create a new Order referring the same contract.;
u2022 SPRO --> SD -->Sales --> Sales Documents --> Sales Document Header --> Define Sales Document Types --> Field : Outline agreement message; from blank to u201CBu201D.
u2022 SPRO -->SD -->Sales --> Sales Documents --> Sales Document Header --> Maintain Sales Document Types for AFS --> Field : Outline agreement message; from blank to u201CAu201D -
Is there a shopping cart in ME21N schedule line tab in AFS ?
Hello Experts,
My problem is exactly same as mentioned in following [ link|;
As explained in this thread regarding shopping cart in delivery schedule line items, in my system there is no shopping cart appearing in delivery schedule line items however shopping cart is there at header level near document type field.
I have to consolidate the quantities of PR based on material and grid value.
I am using AFS module.
Is this scenario possible to implement in AFS module, if yes, how?
Please help.
Edited by: shubh_ag on Mar 9, 2012 4:30 PM
Edited by: Jürgen L. on Mar 9, 2012 4:52 PMThere isn't a cart or basket - you will need to buy each item individually.
Maybe you are looking for
-
Hi, I am trying to update a number of items which the software check brings up: It runs and says it is installing but at the end I get this error message: BUT then I ge tthis: Can anyone help me to enable the software to update? Thanks
-
2 Weeks With My Z10 And Wishes For The Next BlackBerry
Verizon BB Z10 Hardware : I have in my possession BB Z10 from Verizon and Q10 from international carrier also Z10 from AT&T. I try to compare my own personal Z10 with the others including my Verizon Galaxy note 2, Droid Razr MAXX , iPhone 5 and Lu
-
Urgent: RFC Lookup for BAPI in XI
Hi, I am trying to call a BAPI that exists in XI system,in the Message Mapping in same XI system. If I run the BAPI,it is working fine. But if I call this in XI Message Mapping using RFC lookup,it returns garbage. I am not getting any RFC error. Can
-
Each time I create a Text Frame it appears colored with black?
Every time I create a Text Frame with the Type tool in InDesing CS5.5 in a document named "02_End.indd", (this happen only for this file) the it appears filled with black color. On the other documents this does not happen (the text frames are with no
-
Looks like plenty of folks here have similar problems getting the dg4odbc gateway working for MySQL. Hope someone that's tackled this can help me out. Our configuration is such that we have our gateway machine separate from our Oracle database, and t