Batch determination process in SD- Delivery: any Function module?
Hi All,
I want to use the logic used in SD-Delivery for batch determination in Batch Search Strategy report.
Is there any function module avaialable for batch determination process done in SD so that I can make use of it?
Thanks in advance,
Rgds,
MAdhuri
Hi Madhuri,
My requirement is to select that batches that were picked up by the delivery (i.e. those that passed the search strategy) using the Material and Plant combination, Customer as an optional parameter.
Could you please provide the function modules that are required to make use of the function module "VB_BATCH_DETERMINATION"? Also, could you please let me know if we need to take into consideration any other factors when using the function module VB_BATCH_DETERMINATION
Thanks in advance!
Thanks,
Manohar. Dubbaka.
Similar Messages
-
Automatic Batch determination while creating outbound delivery
Hi,
I have already performed following steps, but still i am facing problem for Automatic Batch determination while creating outbound delivery :
1.CT01- Creation of Characteristics. ( Define Selection Class )
2.CL01- change. ( Define Selection Class )
Add Characteristics in u2018CHARu2019 tab And save .
3.CU70 u2013 create u2018Sorting Sequenceu2019 and assign characteristics
4.Batch Search Procedure & Strategy type
V/C3 u2013 Batch Search Procedure and assign the strategy types
a.To create condition type T. code V/C1
b.To create access sequance T. code V/C2
5.V/C5 - Allocate SD Search Procedure/Activate Check u2013 assign sales organization , order type into Batch search procedure.
6.V/CL - Activate Automatic Batch Determination in SD - Activate automatic batch det. for delivery item categories u2013 select item category and activate auto batch determination
7. VCH1 u2013 Create batch search strategy against strategy type as per the access sequence needed.
Please let me know is there any other step, apart from it.
Tx
UtsDear saravanan,
Re :Check from ur material master view ' Sales: General/Plant Data' that availability check should be 02 and batch management should get activated .
Done!
Re: check CT01 - addnl data table name and field name maintained ( which field to be taken for batch determination )
Done!
Re:check CL01 - char - is maintained with CT01 char
Done!
Re: check from v/c1 'Sort sequence' and Qty proposal 1 are maintained correctly.
Done!
Still i am not able to get batch automatically...
Is there any LIFO or FIFO settings i have to maintain in Material master.
Pl guide.
Tx
Uts -
Urjent-Any function module for finding Sales order, Delivery and Invoic
Hi Experts,
I am having selection screen like
Sales order
Delivery
Invoice
Customer
If i give sales order
Delivery and Invoice should pull
If i give delivery
sales order and Invoice should pull
If i give Invoice
sales order and delivery should pull
If i give customer
all customer related data should pull
Do we have any function modules to meet this reqirement?
If we have please provide function modules.
Thanks,
mahe
Edited by: Rob Burbank on Mar 30, 2009 4:17 PM
Edited by: mahahe on Mar 31, 2009 9:12 PMYou can use VBFA table, right? in the FM also, you can find the same logic, like pulling from VBFA table.
thanq -
Is there any function module that brings out profile planner
Hello experts,
Is there any function module that brings out profile planner (I want to set planner profile as u201CSAP800u201D. I am using 7KE1 transaction.
Example: I know, the FM - K_KOKRS_SET_BATCHINPUT will set the controlling area to 'CTIC' for the entire batch input process.
Thanks in advance.look at these fms..
CACS_PROFILE_PARTNER_READ
CACS_PROFILE_SHOW -
Processing Idoc type DELVRY05 whith function module IDOC_OUTPUT_DESADV01
Hi experts,
I want to send automatically an IDOC type DELVRY05 while saving the outbound delivery. i set the output message for shippement and the Outbound EDI parameters for the ship to party.
When I'm processing the output message in VL02N, i'm having the following message:
<<IDoc type DELVRY05 cannot be processed by IDOC_OUTPUT_DESADV01
Message no. E0029
Diagnosis
IDoc processing has been started for IDoc type DELVRY05. The selected process is of type and called IDOC_OUTPUT_DESADV01.
The selected process does not support processing of IDoc type DELVRY05.
>>
Is there any function module that i can use in order to process an IDoc type DELVRY05?
thanks for your help.
regards,
HermannHi Mohanaselvan
thanks very much, It's now working !
regards
Hermann -
ATP Check through programme (any function module? )
Hi,
I want to do ATP check for a sales order through a programme. Could you please help me out with any Function module or any process?
Thanks,
SandeepHi,
My exact requirement goes like this:
In Sales Order, if I remove delivery block at header level, and save it, then ATP check availabily should happen automatically (without clicking on check availability).
Could you please help me, if any one had similiar kind of situation?
Thanks,
Sandeep -
How to view ALL batch job details at one glance using function module
Hi Experts,
i need to see all batch jobs details, the information required includes the job name, client number, job frequency .. etc.
but i need to do it with only FUNCTION MODULE.....
SINCE THE INFORMATION IS CAPTURED BY THIRD PARTY SYSTEM.......i am looking for any function module
could you please suggest me any FM's where i can get this information.................
thanks and regards
SAMHi,
You can explore these functional module for SM37 desired details:
With function module BP_JOB_MAINTENANCE (transaction SM37), you can call the full job maintenance system of the background processing system, starting with the job selection screen.
Since many users are not familiar with job maintenance and have no desire to search for their jobs, you can use the function modules BP_JOB_SELECT and BP_JOBLIST_PROCESSOR to select and display a list of jobs for the users of your program.
Use BP_JOB_SELECT to generate an internal table of jobs. Then, with BP_JOBLIST_PROCESSOR, you can display the selected jobs in the list format used by the job maintenance system.
You can also use BP_FIND_JOBS_WITH_PROGRAM to select jobs that run a particular program. Use this function module with BP_JOBLIST_PROCESSOR to display a job list to your users. Like BP_JOBLIST_SELECT; BP_FIND_JOBS_WITH_PROGRAM offers interactive and silent modes.
Regards,
Ashutosh -
Any function module or bapi to get sales order number and invoice number?
hi all,
with delivery order number provided, do we have any function module or bapi to get sales order number
and invoice number?
thanks.Hi,
Check
BAPI_SALESORDER_CREATEFROMDAT1
BAPI_REMUREQSLISTA_CREATEMULT Agency Business: BAPI Create Invoice Lists from Vendor Billing Documents
BAPI_REMUREQSLISTB_CREATEMULT Agency Business: BAPI Create Invoice Lists from Payment Documents
BAPI_REMUREQSLISTC_CREATEMULT Agency Business: BAPI Create Invoice Lists from Posting Lists
BAPI_REMUREQSLIST_CHANGEMULT Agency Business: Change Invoice List Documents BAPI
BAPI_REMUREQSLIST_GETLIST Agency Business: BAPI Determine Detailed Data for Invoice List Documents
BAPI_REMUREQSLIST_RELEASE Agency Business: BAPI Release Invoice List Documents to FI
Edited by: Neenu Jose on Nov 26, 2008 8:53 AM -
Any Function Module to read last 3 years
Hi geeks,
My requirement i need to fetch sales order data of last 3 years, so is there any function module where i can pass todays date and get past 3 years dateI guess there is no fm related to ur requirement.
See the below program as per ur req.
Data Declaration Part
TYPE-POOLS
type-pools : slis.
Tables
tables : VBAK,
VBAP.
Internal table for VBAK Table
data : begin of i_vbak occurs 0,
vbeln like vbak-vbeln,
bstnk like vbak-bstnk,
vdatu like vbak-vdatu,
end of i_vbak.
Internal table for VBAP and MATNR
data : begin of i_vbap occurs 0,
vbeln like vbap-vbeln,
matnr like vbap-matnr,
kdmat like vbap-kdmat,
kwmeng like vbap-kwmeng,
netpr like vbap-netpr,
maktx like makt-maktx,
end of i_vbap.
Internal tables
data : begin of i_sales occurs 0,
vdatu like vbak-vdatu,
bstnk like vbak-bstnk,
matnr like vbap-matnr,
maktx like makt-maktx,
kdmat like vbap-kdmat,
kwmeng like vbap-kwmeng,
netpr like vbap-netpr,
end of i_sales.
Variable for ALV
data : v_repid like sy-repid,
gt_fieldcat type slis_t_fieldcat_alv.
Selection-screen
selection-screen : begin of block blk with frame title text-001.
select-options : s_vbeln for vbak-vbeln,
s_erdat for vbak-erdat,
s_ernam for vbak-ernam,
s_vdatu for vbak-vdatu obligatory,
s_BSTNK for vbak-BSTNK,
s_KUNNR for vbak-kunnr,
s_matnr for vbap-matnr,
s_KDMAT for vbap-KDMAT.
selection-screen : end of block blk.
Initilization
initialization.
v_repid = sy-repid.
S T A R T - O F - S E L E C T I O N ****************
start-of-selection.
Get the data from VBAK and VBAP Tables
perform get_vbak_vbap.
E N D - O F - S E L E C T I O N *****************
end-of-selection.
Display the data
perform dispolay_data.
*& Form get_vbak_vbap
Get the data from VBAK and VBAP Table
FORM get_vbak_vbap.
Get the data from VBAK Table
select vbeln bstnk vdatu from vbak into table i_vbak
where vbeln in s_vbeln
and bstnk in s_bstnk
and vdatu in s_vdatu
and kunnr in s_kunnr
and erdat in s_erdat
and ernam in s_ernam.
if sy-subrc ne 0.
message e000(zwave) with 'No data found for given selection'.
endif.
Get the data from VBAP Table
select avbeln amatnr akdmat akwmeng a~netpr
b~maktx into table i_vbap
from vbap as a inner join makt as b on bmatnr = amatnr
for all entries in i_vbak
where a~vbeln in s_vbeln
and a~kdmat in s_kdmat
and a~abgru = space
and a~matnr in s_matnr
and a~matnr ne '000000000000009999'
and a~matnr ne '000000000000004444'
and a~matnr ne '000000000000008888'
and a~matnr ne '000000000000001111'
and a~werks = '1000'
and b~spras = 'E'
and a~vbeln = i_vbak-vbeln.
if sy-subrc ne 0.
message e000(zwave) with 'No data found for given selection'.
endif.
sort i_vbak by vbeln.
sort i_vbap by vbeln matnr.
loop at i_vbap.
read table i_vbak with key vbeln = i_vbap-vbeln
binary search.
if sy-subrc eq 0.
i_sales-bstnk = i_vbak-bstnk.
i_sales-vdatu = i_vbak-vdatu.
i_sales-matnr = i_vbap-matnr.
i_sales-kdmat = i_vbap-kdmat.
i_sales-maktx = i_vbap-maktx.
i_sales-netpr = i_vbap-netpr.
i_sales-kwmeng = i_vbap-kwmeng.
append i_sales.
else.
continue.
endif.
clear : i_sales,
i_vbap,
i_vbak.
endloop.
sort i_sales by vdatu bstnk matnr.
refresh : i_vbap,
i_vbak.
ENDFORM. " get_vbak_vbap
*& Form dispolay_data
Display the data
FORM dispolay_data.
Fill the Fiedlcat
PERFORM fieldcat_init using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_sales
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
ENDFORM. " dispolay_data
*& Form fieldcat_init
text
-->P_GT_FIELDCAT[] text
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Delivery Date
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'VDATU'.
LS_FIELDCAT-OUTPUTLEN = 12.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Delivery Date'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Purchase Order #Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'BSTNK'.
LS_FIELDCAT-OUTPUTLEN = 25.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Purchase Order #'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material
CLEAR LS_FIELDCAT.
LS_FIELDCAT-REF_FIELDNAME = 'MATNR'.
LS_FIELDCAT-REF_TABNAME = 'MARA'.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Material #'.
ls_fieldcat-seltext_M = 'Material #'.
ls_fieldcat-seltext_S = 'Material #'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material Description
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MAKTX'.
LS_FIELDCAT-OUTPUTLEN = 40.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Material Description'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Customer Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KDMAT'.
LS_FIELDCAT-OUTPUTLEN = 35.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Customer material no.'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Quantity
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'KWMENG'.
LS_FIELDCAT-OUTPUTLEN = 15.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Quantity'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Net Price
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'NETPR'.
LS_FIELDCAT-OUTPUTLEN = 15.
LS_FIELDCAT-TABNAME = 'I_SALES'.
ls_fieldcat-seltext_L = 'Net Price'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " fieldcat_init
Thanks
Seshu -
Is there any function module to assign Object to Transport request (Task)?
Hi There,
My requirement is to assign an object to desired task of the transport request. I found one FM called TR_EXT_INSERT_IN_REQUEST. But it has some limitations.
Limitations of FM : TR_EXT_INSERT_IN_REQUEST
1. It will assign the given object to given Transport request. But not to the task of a transport request. This FM will not allow assigning objects to the task. It will allow only to request.
2. Object entry present in transport request table e071. But, I can't find any version in version management. Moreover, the object is not locked under that particular request.
Can any one let me know, is there any function module to fullfill the requirement without above mentioned limitations?
Requirement :
1. Given object should be assigned to given task of TR.
2. Need FM to activate the Object and object texts.
3. After assigning to the request, It should show the vesion in version management and object should be locked under particular Task/ Request.
Your help would be greatly appreciated and <<removed by moderator>> Thanks in advance.
Have a nice day!!
Thanks and Regards,
Neelima. D
Edited by: kishan P on Jan 5, 2012 2:21 PM@ Dear Nabheet & Karuna
The object is not in local folder. I am aware of the process of assigning the object to request manually.
I want that to be done automatically. I wont prefer writing BDC for this.
@ Dear Keshav,
Thank you for the function module. But TR_INSERT_REQUEST_WITH_TASKS will create a tarnsport request with tasks.
@ Dear All,
My requirement is to assign the object to Task automatically. Not creating the request or Task. Task & Request are
present already. -
Is there any Function module available for GR IR for purchase order
Hi
Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
One way to create a custom fuction to fetch the details from MSEG and BKPF.
Can somebody suggest a better solution.
Thanks in advance.
Ruhi HiraWhich table in BAPI_PO_GETDETAILS exactly has these information ?
PO_HEADER_TEXTS
PO_ITEMS
PO_ITEM_ACCOUNT_ASSIGNMENT
PO_ITEM_SCHEDULES
PO_ITEM_CONFIRMATIONS
PO_ITEM_TEXTS
PO_ITEM_HISTORY
PO_ITEM_HISTORY_TOTALS
PO_ITEM_LIMITS
PO_ITEM_CONTRACT_LIMITS
PO_ITEM_SERVICES
PO_ITEM_SRV_ACCASS_VALUES
RETURN
PO_SERVICES_TEXTS
EXTENSIONOUT
NFMETALLITMS
Regards
Ruhi Hira -
Any Function module or BAPIs are available to get scheme name for the inter
I have internal order no value in table AUFK-AUFNR , and the internal order corresponding Scheme value is available in IMPR-PRNAM . Now I want to inner join both the tables to extract the data , but there is no common field . Is there any Function module or BAPIs are available to get scheme name for the internal orders?
look at DB-VIEW "V_IVP_OR".
Regards,
Laurent -
Is there any function modules or BAPI's
Is there any function modules or BAPI's that would delete the original partner and then add a new partner.Iam using BAP
bapi_alm_notif_data_modify
But iam not able to change partner in notification header
Please give your input for sovling itDear Rama,
In the bapi_alm_notif_data_modify, there are 2 structure
NOTIFPARTNR STRUCTURE BAPI2080_NOTPARTNRI OPTIONAL
NOTIFPARTNR_X STRUCTURE BAPI2080_NOTPARTNRI_X OPTIONAL
Pass yr partner value in NOTIFPARTNR, and against the value make it "X" in the NOTIFPARTNR_X , then u can change the partner value.
Give point if helpfull
Thanks -
How to create Inbound Idocs in a ABAP program? Any function Module?
Hello Experts,
My requirement is : I have sales order data which I extracted from third party system in my internal tables. In the same box I need to create inbound Idocs and then consequently create sales orders.
I have used the function module IDOC_INBOUND_WRITE_TO_DB to create inbound Idocs from Sales Orders data in internal tables. I have populated all the data records with correct PSGNUM and HLEVEL values. My plan is to create inbound idocs with this function module and send those to IDOC_INPUT_ORDERS function module which creates Sales Orders.
If a sales order in the internal table in ABAP program contains only one item, then I am getting correct idocs. But if more than one item exists for a sales order then the line item segments which got repeated in Idoc are having PSGNUM and HLEVEL values as zero when I checked in WE02. As a result the hierarchy from the second item segment is getting disturbed and getting the status 60.
I populated T_EDIDD with data records from IDOC_INBOUND_WRITE_TO_DB.
To the function module IDOC_INPUT_ORDERS, T_EDIDC and T_EDIDD are the input. I observed that in T_EDIDD also the PSGNUM and HLEVEL values are blank.
I am getting Status 60 with message 'EDI: Syntax error in IDoc (segment cannot be identified)' for idocs which have more than one item.
I need to extract sales data from third party and create inbound idocs and create sales orders in one ABAP program only. I need to display corresponding Idoc numbers for the corresponding third party sales order number in a listoutput.
Can anybody please provide inputs?
Regards.Hi Anjali,
Thanks for the response.
I have passed the PSGNUM and HLEVEL values while populating the data records. Then I sent the data records and control record information to the function module IDOC_INBOUND_WRITE_TO_DB. Inside this function module there is code to clear the PSGNUM values and HLEVEL values.
for compatibility: clear administration data of data records
perform data_records_wipe
tables
t_data_records.
FORM DATA_RECORDS_WIPE
TABLES
T_DATA_RECORDS_IN STRUCTURE EDIDD.
LOOP AT T_DATA_RECORDS_IN.
CLEAR: T_DATA_RECORDS_IN-MANDT,
T_DATA_RECORDS_IN-DOCNUM,
T_DATA_RECORDS_IN-SEGNUM,
T_DATA_RECORDS_IN-PSGNUM,
T_DATA_RECORDS_IN-HLEVEL.
modify t_data_records_in.
ENDLOOP.
ENDFORM. " DATA_RECORDS_WIPE
This is the code which is clearing all the PSGNUM and HLEVEL values. After coming out of this function module we are getting the error idocs created with disturbed hierarchy.
I need to create INBOUND Idocs with the data in ABAP program.
Please let me know if any inputs? Is there any function module existing to create Inbound Idocs inside an ABAP program?
Regards -
Any function module to read all the values in Tcode-PPQD?
Hi all
Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
and any idea what tables are involved to get these values like parent and child relationship?
Thanks in advance.
Murali.Murali,
you can use the following..
data: w_sobid type sobid, "Qualification ID
w_objid type objid. "Qualification Catalog
select objid into w_objid
up to 1 rows
from HRP1001
where otype = 'QK'
and plvar = '01'
and istat = 1
and risgn = 'B'
and relat = '030'
and endda ge sy-datum
and begda le sy-datum
and sclas = 'Q'
and sobid = w_sobid.
endselect.
if sy-subrc eq 0.
write: / w_objid,w_sobid.
endif.
Regards,
Suresh Datti
Maybe you are looking for
-
Can we restrict or disabale approve trip request while creating expense .
Hi Guru , we are using EHP4 and ECC6 . My client has a requirement ,the scenario is as follows "Using ESS an employee creates a travel request and then get approvels from their managers , it is working fine . But when employee creates an expense rep
-
How to map complex queries to ADF
I have an SQL query that I would like to map to ADF business components but am having difficulty. The query is: SELECT ENTA.KEYA, ENTA.ATTA1, ENTB.ATTB1 FROM ENTA, ENTB WHERE (ENTA.KEYA = '?') AND (ENTA.ATTA2 = ENTB.KEYB) AND (ENTA.ATTA1 BETWEEN ? AN
-
How to set selection in UIPickerView after view has loaded?
I have a UIPickerView working just fine, and I can set the current selection when a button is clicked, but how can I set the current selection when the view appears? I've tried to set the selection in viewDidLoad, viewDidAppear and viewWillAppear to
-
Hi, i´m working with a smartform. In this smartform i get a subtotal of an amount field. The question is that the result is OK but the output format is wrong (i get 1,000 instead of 1). What should i do in order to get the right output format? Best r
-
Hi, This is in continuation to one of my previous queries to this forum... Restrict creation of standard POs from scratch i.e. do not allow POs to be created without a backing requisition and Do not allow Quantity value to be updated in the PO autocr