IDOC creation while creating a PO.
Hi,
While creating a Purchase Order, the segments E1EDK04 and E1EDK05 in IDOC Type ORDERS02 are not getting populated.
Can anybody let me know the reason or any specific setting or configuration needed to populate these segments.
Also, I want to know how can we check if a segment is active or not.
Thanks,
Rupam
hi,
what do u mean by whether segments are active or not?
As per my knowledge, segments are not relevant at a technical level in an IDOC. They are used to interpret field SDATA in the data record (EDIDD) and hold relevance at a business level.
For status u can check the idoc as a whole for its current (as well as previous) status.
My knowledge is pretty limited in this domain. Someone please correct me if i am horribly wrong!!!
regards,
PJ
Similar Messages
-
File-to-idoc erro while creating IDOC
Hi,
I am working FIL-TO-IDOC scenario.
my idoc : DESADV.DELVRY03.
while creating IDOC in target end created with error status 51.
the error is POSEX field is empty.
I gave the value for POSEX then i tried it is giving another error..'field POSEX is empty'
actully what i need to give for POSEX.
where do i find the POSEX value for delivery document.
Please can any one help me to create succefully with Delyry03 idoc.
I have another douts also..to create the Delivery document IDOC is DESADV.DELVRY03 is correct or not...if any other IDOC's is there to create delivery document.
Regards,
venu.Hi Venu,
<i>>>>I have another douts also..to create the Delivery document IDOC is DESADV.DELVRY03 is correct or not...if any other IDOC's is there to create delivery document.</i>
This IDOC is the right one.
POSEX is the external item number. How many line items are there, I mean how many delivery items are there? Are you sure you are assigning POSEX for all the records?
Thanks,
Prakash -
User-exit for Stock Creation while creating PR
hi guru
In case of materials like tools & equipments for which stock does not exist, the user creates a requisition when the material needs to be sent out for repair (subcontracting). The stock for this will be created automatically when such PR will be saved. The data for this like material code, quantity, GL account, etc will come from the PR.
relavent tcodes
me51n----pR CREATION
MB1A(MOVMENT TYPE)---GOODSISSUE
ME_REQ_POSTED(EXIT NAME)----- PURCHASE REQUSTION POSTED
Program Logic/Pseudo Code
While creating a PR, the values will be entered for KNTTP, WERKS, MATNR, MENGE, SAKTO,KOSTL. These values will be used for the transaction MB1A with movement type 202 to create the stock.
The development is applicable for the PRs with document type ZRP only.(BSART=ZRET) and material type UNBW.
PLZ GIVE ANSWER AND CODE FOR THIS PROGRAM...PLZ URGENThi guru
In case of materials like tools & equipments for which stock does not exist, the user creates a requisition when the material needs to be sent out for repair (subcontracting). The stock for this will be created automatically when such PR will be saved. The data for this like material code, quantity, GL account, etc will come from the PR.
relavent tcodes
me51n----pR CREATION
MB1A(MOVMENT TYPE)---GOODSISSUE
ME_REQ_POSTED(EXIT NAME)----- PURCHASE REQUSTION POSTED
Program Logic/Pseudo Code
While creating a PR, the values will be entered for KNTTP, WERKS, MATNR, MENGE, SAKTO,KOSTL. These values will be used for the transaction MB1A with movement type 202 to create the stock.
The development is applicable for the PRs with document type ZRP only.(BSART=ZRET) and material type UNBW.
PLZ GIVE ANSWER AND CODE FOR THIS PROGRAM...PLZ URGENT -
Transport Request Creation while creating Characteristics and Classes.
Hi
While do a Release Strategy i am creating Characteristics and Classes.
While saving Characteristics and Classes, i am not getting any Transport Request Creation.
Is there any problem with my configuration or the Standard SAP does not give me.
I want to track all the things i am doing.
Reply me ASAP
cheers
MaruthiRam
Edited by: MARUTHI RAM on Jul 17, 2008 9:43 PM
Edited by: MARUTHI RAM on Jul 17, 2008 9:44 PMCharacteristics and class are master data so system will not ask for transport.
if you want to migrate to another system than you have to create the LSMW (upload program)
using this you can upload all the char value into release strategy in wach client
now if you are migrating the whole client than system will copy the class and char along with release strategy but not value.
to upload the char value of release strategy
use LSMW with std object 0130. -
AM creation while creating a new LOV
Hi,
I have to create a new LOV. For this I have to create an AM,VO and LOV region. Now my question is regarding AM.
1. Can we create a new AM or,
2. Do I extend the already existing LOV AM.
I created a new AM but after personalizing the page get an error "Can't find the application module...."
I had also attached the new AM to the new LOV region created.
So is it necessary that the existing LOV AM be extended or can we create a new AM?
Please guide
Thanks1. I have bounced server after files were transferred.
2. The AMs are tn correct place on server
3. The AM is attached to the LOV region and is not attached to the table
The error stack is as follows:
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition sspn.oracle.apps.okc.lov.server.SSPN_RepSiteLOVAM of type ApplicationModule not found
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1270)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1458)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2673)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1919)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:554)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:662)
## Detail 0 ##
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition sspn.oracle.apps.okc.lov.server.SSPN_RepSiteLOVAM of type ApplicationModule not found
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1192)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1458)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2673)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1919)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:554)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:662)
oracle.apps.fnd.framework.OAException: oracle.jbo.NoDefException: JBO-25002: Definition sspn.oracle.apps.okc.lov.server.SSPN_RepSiteLOVAM of type ApplicationModule not found
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1192)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1458)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2673)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1919)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:554)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:662) -
Hello,
I am getting this Error message"error determining posting period(infostructure S008,Variant Z2,RC3)" while creating Sales order from Inbound Idocs in the IDOC,which is affecting sales order creation.
While viewing this Info structure S008, I could see no records have been maintained. Wanted to know the reasons behind this Hard error?
Is it something related to Date Field used in the Update Rules for this Infostructure which is causing this posting period error?
Appreciate your inputs on this.
Thanks and Regards
Mohammed RoshanThank you Jelena,I checked the Ship. Delivery dates in the IDOC which are for Current Fiscal Year- 20140703 and 20140711,Could there be any other reason for this error?
Could it be an issue with e Update rule in this Infostructire S008
Secondly when we try change the update rule thru MC25 for this Infostructure S008,It gives a message"
"Maintenance of SAP standard updates not allowed"
Kindly advice
Thanks and Regards
Mohammed Roshan -
VKP0 is not to be maintained as mandatory condition while creating IDOC
We have a very awkward need from our client.The bussiness doesnt want the condition type VKP0 to be mandatory condition while creating IDOC for article master data.
In the bussiness terms they send some articles to POS without creating price.They dont want to have the value of KONWERT field as 'ZERO'..
We have upgraded ECC 5.0(IS Retail) to ECC 6.0(IS Retail).It was techinical upgrade hence no functional configuration has been done.
Moreover we have compared POS outbound profile in ECC 6.0 with ECC 5.0.Every configuration is same and all required prerequisites for POS Outbound profile are same in both the versions.The Idoc in ECC 5.0 is getting created even though the price of the artilce is not required to be mainatained.
All of us know that if prices are not maintained system shows'X' mark in price field in T.Code WPER2.
But,instead the IDOC is getting created in ECC 5.0.
Please help us to make the IDOC creation possible in ECC 6.0 even without creating the price.
Edited by: ajay das on Nov 15, 2008 8:00 PMHello Ajay,
Are IDocs for other transactional data getting created? In case these are, you can try to check the message control settings.
Regards,
Nimish -
Update STXH text while creating a PO using IDOC's PORDCR103
Hi,
Can we upload the shipping instructions while creating a STO using Inbound IDOC - PORDCR103
Regards,
Shariq.Hi,
For uploading shipping text you need to call function module SAVE_TEXT.
Thanks
Ankit Attrish -
Creation of invoicing plan while creating the PO using BAPI_PO_CREATE1
Hi, basically I'm creating a PO using BAPI_PO_CREATE1 and then creating Invoicing plan thru ME22 using BDC.
Could anyone please help me if there is any possibility of creation of invoicing plan while creating the PO itself using BAPI_PO_CREATE1.
thanks in advance.Hi,
Have you tried filling up the invoicing plan related tables of the bapi ?
*" INVPLANHEADER STRUCTURE BAPI_INVOICE_PLAN_HEADER OPTIONAL
*" INVPLANHEADERX STRUCTURE BAPI_INVOICE_PLAN_HEADERX OPTIONAL
*" INVPLANITEM STRUCTURE BAPI_INVOICE_PLAN_ITEM OPTIONAL
*" INVPLANITEMX STRUCTURE BAPI_INVOICE_PLAN_ITEMX OPTIONAL
Regards. -
Error while creating an outbound idoc using idoc type delvry02
hi,
i getting the following error while creating an outbound idoc(outbound shipping notification) using message type " DESADV" and IDOC TYPE " DELVRY02"
ERROR:
" SPECIFY EITHER ADDRESS NO OR ADDRESS HANDLE"
MESSAGE NO: AM053
Help would be appreciated.
regards
leoThe message is kind of self-explanatory. It seems that some address (delivery address ?) is required but is missing from the IDoc. If it's a syntax error, then the segment with error will appear in red in WE05 transaction.
It is also possible that you have filled some field that you should have left blank and now SAP is trying to find an address based on that field.
Check your IDoc contents. It's really hard to tell from the distance since the requirements and configuration could be very different in different systems. Sometimes the OSS note search by message ID and number is also helpful. -
Error message while creating an inbound delivery to generate an idoc
hi,
i am getting the following error message while creating an inbound delivery(vl31n) where the message has to be sent ot decentralized warehouse mangament using idoc .
." No recipient could be determined for object BUS2015 method SAVEREPLICA"
Procedure for System Administration
The system attempts to determine a recipient for object BUS2015 method SAVEREPLICA using the filter object types WHSE_NO. The system cannot determine a recipient. Define a filter object type WHSE_NO with a valid filter value for recipient determination for object BUS2015 method SAVEREPLICA.
need help
regards
leoInbound delivery is not part of Sales and Distribution. You might want to move your post to either the Logistics Materials Management (MM) forum or the Workflow forum.
Also sometimes search for OSS notes by the message class and number helps. -
Automatic creation of settlement rule while creating sales order
Hi Friends,
Can any one help me how to create settlement rule automatically while creating sales order i.e saving sales order. Is there any function module or any badi which can be used.. please suggest.
thanks
bobbyHi,
Here is the solution , First Create a sustitution by going into OPSN Transaction , only user exit say 'U902'
and write the form routine in Program named 'ZRGGBS000'
The code is below ,
*& Form U902
Automatic Generation of Settlement Rule For WBS and Company 4180
FORM u902.
Exit For Automatic Settlement Rule Creation for WBS Billing elements
IF sy-tcode = 'CJ20N' or sy-tcode = 'CJ01' or sy-tcode = 'CJ02'.
DATA lv_proj TYPE ps_pspid.
lv_proj = proj-pspid.
EXPORT lv_proj TO MEMORY ID 'PSPID'.
Calling YGPS_CJB1EXEC Program For Creating Settlement Rule
SUBMIT ygps_cjb1exec AND RETURN.
ENDIF.
ENDFORM. "u902
*& Program YGPS_CJB1EXEC
PROGRAM ygps_cjb1exec.
Automatic Generation of Settlement Rule For WBS and Company 4180
Called From Exit For Automatic Settlement Rule Creation for WBS Billing elements
DATA: bdcdata_wa TYPE bdcdata,
bdcdata_tab TYPE TABLE OF bdcdata,
itab TYPE TABLE OF bdcmsgcoll.
DATA :lv_currm LIKE bkpf-monat,
lv_curry LIKE bkpf-gjahr,
lv_prevm LIKE bkpf-monat,
lv_prevy LIKE bkpf-gjahr,
lv_proj TYPE ps_pspid,
lv_mode TYPE c,
lv_time TYPE sy-uzeit.
DATA :g_datfm LIKE usr01-datfm,
g_dd(2) TYPE c, " Day
g_mm(2) TYPE c, " Month
g_yyyy(4) TYPE c, " Year
g_sydatum(10) TYPE c.
IMPORT lv_proj FROM MEMORY ID 'PSPID'.
lv_mode = 'N'.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPLKAZB'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'PRZB-VARIANT'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'PRZB-VARIANT'.
bdcdata_wa-fval = 'ZGPS0001'.
APPEND bdcdata_wa TO bdcdata_tab.
CALL FUNCTION 'GET_CURRENT_YEAR'
EXPORTING
bukrs = '4180'
IMPORTING
currm = lv_currm
curry = lv_curry
prevm = lv_prevm
prevy = lv_prevy.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'RKAUF-FROM'.
bdcdata_wa-fval = lv_currm.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'RKAUF-GJAHR'.
bdcdata_wa-fval = lv_curry.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=VARC'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'RKPSEL00'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'CN_PROJN-LOW'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'CN_PROJN-LOW'.
bdcdata_wa-fval = lv_proj.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'CN_PSPNR-LOW'.
bdcdata_wa-fval = space.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'CN_NETNR-LOW'.
bdcdata_wa-fval = space.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'CN_ACTVT-LOW'.
bdcdata_wa-fval = space.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'CN_MATNR-LOW'.
bdcdata_wa-fval = space.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '/00'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=SAVE'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=VBAC'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPLSPO1'.
bdcdata_wa-dynpro = '0100'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=YES'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPLKAZB'.
bdcdata_wa-dynpro = '1000'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'RKAUF-BATCH'.
bdcdata_wa-fval = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'RKAUF-TEST'.
bdcdata_wa-fval = space.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=RUN'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-program = 'SAPLKABA'.
bdcdata_wa-dynpro = '0210'.
bdcdata_wa-dynbegin = 'X'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'KABA01-JNAME'.
bdcdata_wa-fval = 'CJB1_EXEC'.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_SUBSCR'.
bdcdata_wa-fval = 'SAPLKABA'.
APPEND bdcdata_wa TO bdcdata_tab.
Extract the date format from the user settings
PERFORM f_get_dateformat CHANGING g_datfm.
Changing the current date format to User Profile Date Settings
PERFORM f_format_date USING g_datfm
sy-datum+4(2)
sy-datum+6(2)
sy-datum+0(4)
CHANGING g_sydatum.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'KABA01-STDAY'.
bdcdata_wa-fval = g_sydatum.
APPEND bdcdata_wa TO bdcdata_tab.
lv_time = sy-uzeit + 30.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'KABA01-STTME'.
bdcdata_wa-fval = lv_time.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'KABA01-PRIKZ'.
bdcdata_wa-fval = space.
APPEND bdcdata_wa TO bdcdata_tab.
CLEAR bdcdata_wa.
bdcdata_wa-fnam = 'BDC_OKCODE'.
bdcdata_wa-fval = '=TAKE'.
APPEND bdcdata_wa TO bdcdata_tab.
Calling Transaction 'CJB1' for creating settlement rule
CALL TRANSACTION 'CJB1' USING bdcdata_tab MODE lv_mode .
IF sy-subrc = 0.
ENDIF.
*& Form F_GET_DATEFORMAT
This subroutine returns the date format in the user setttigs
<--P_G_DATFM Date Format
FORM f_get_dateformat CHANGING p_g_datfm. "#EC *
SELECT SINGLE datfm FROM usr01 INTO p_g_datfm
WHERE bname = sy-uname.
ENDFORM. " F_GET_DATEFORMAT
*& Form F_FORMAT_DATE
This subroutine returns the date as per the user settings
-->P_G_DATFM Date Format
-->P_G_MM Month
-->P_G_DD Day
-->P_G_YYYY Year
<--P_G_DATE Date
FORM f_format_date USING p_g_datfm
p_g_mm
p_g_dd
p_g_yyyy
CHANGING p_g_date. "#EC *
CONSTANTS: c_dot VALUE '.',
c_slash VALUE '/',
c_dash VALUE '-',
c_1 VALUE '1',
c_2 VALUE '2',
c_3 VALUE '3',
c_4 VALUE '4',
c_5 VALUE '5',
c_6 VALUE '6'.
DATA: l_day(2),
l_month(2).
l_day = p_g_dd.
l_month = p_g_mm.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = l_month
IMPORTING
output = l_month.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = l_day
IMPORTING
output = l_day.
CASE p_g_datfm.
WHEN c_1.
CONCATENATE l_day l_month p_g_yyyy INTO p_g_date
SEPARATED BY c_dot.
WHEN c_2.
CONCATENATE l_month l_day p_g_yyyy INTO p_g_date
SEPARATED BY c_slash.
WHEN c_3.
CONCATENATE l_month l_day p_g_yyyy INTO p_g_date
SEPARATED BY c_dash.
WHEN c_4.
CONCATENATE p_g_yyyy l_month l_day INTO p_g_date
SEPARATED BY c_dot.
WHEN c_5.
CONCATENATE p_g_yyyy l_month l_day INTO p_g_date
SEPARATED BY c_slash.
WHEN c_6.
CONCATENATE p_g_yyyy l_month l_day INTO p_g_date
SEPARATED BY c_dash.
ENDCASE.
ENDFORM. " F_FORMAT_DATE
thanks
bobby -
How to resolve the issue of route while creating a sales order using IDOC
Hi,
When I am creating a sales order mannualy the the route is correct and matching also but while using IDOC try to create a sales order then the route is showing wrong.
I tried to debug the program SAPMV45A but I am not getting anything.
Could any body help me on this.
Waiting for quick response.
Best Regards,
BDPHi Bansidhar,
You need to debug the Function Module thats assigned to your Process code.
In standard config for Sales Order, Process Code ORDE is assigned to FM IDOC_INPUT_ORDERS. And this FM uses Call Transaction Method to create Sales Orders. SO you can debug this FM.
Hope this helps you solving the problem.
Regards
Srikanth M -
IDOC fialed while creation of sales oredr
Hi Experts
We are creating sales order through IDOC and for creating SO we are using BAPI_SALESORDER_CREATEFROMDAT2 but idoc is getting failed with error
' Internal error: 10 , 000010 , NOT_ALL_INPUT_DATA_PROCESSED '
Not able to understand when this error comes. Please letme know what is the issue?
Thanks,
AmitHi,
See this [Thread|Salesorder creation through BAPI;
Also.
[Link|http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1027244,00.html]
Rhea. -
Problem while creating INVOIC idoc
Dear All,
I am facing a error messege while creating INVOIC(using MIRO transaction) idoc through EDI for a partner(vendor).
In MIRO transaction after selecting one Item I clicked GoTo>Messege>Item
Then I selected output type (Z output type) , Medium EDI, Function VN ,Partner number (say 123) language EN.
After that when I presse enter I am geting a messege "Partner 123 does not exist for partner function LF".
All the configuration is done including partner profile for 123(partner type is LI).
Please let me know what is the reason for this error. Do i need to make any changes in configuration?
Regards
ArindamGo to BD54 and maintain table view for ur partner type
hope this helps u..
Thanks,
Anil
Edited by: anil sasidharan on Apr 17, 2009 11:42 AM
Maybe you are looking for
-
I keep getting the same emails again & again in my inbox. My emails are being repopulated since yesterday even though I have been deleting them and emptying the trash. I can send & receive emails though. Please help how I can stop this from happening
-
Call function 'Download' using different internal tables
Hi everyone! i declare 10 different internal tables, with the same structure but different data. i need to create 10 different files (one from each internal table) i dont want to call 10 times the function download. is there someway to put a variable
-
...but all my Photography plan is running on my MAC computer (LR5 and Photoshop CC). Do I have to click install on LR, and I choose to install again, will I ruin something?
-
Move a node inside a XML (Jdev 11.1.1)
Hello to all, I'm trying to write a query to move a node inside a XML. For example from: <root> <fields> <field id="1">...</field> <field id="2">...</field> <field id="3">...</field> <field id="4">...</field> *<field id="5">...</field>* </fields> </r
-
Meaning of % in Form/parameters names
Hi. I've seen the string "%_" in the names of Forms and parameters. For example there is an SAP standard program "EXAMPLE_PNP_GET_PAYROLL" and during Debug in the GET pernr logic db the Form name spells "%_GET_PERNR" and there is no such Form in th