Quantcast
Channel: SCN: Message List
Viewing all 3164 articles
Browse latest View live

Re: Custom invoice in SUS

$
0
0

Hi Ravi,

 

Yes, it is possible.


In classic scenario SAP SUS is connected to MM and SRM backend systems.

Here PO is created in MM and is sent to SAP SUS System via XI,Supplier can then send a POR for this PO. This process continues with the supplier sending an ASN (Advanced Shipping Notification) and Invoice.

 

Reward if helpful.

 

Regards,
AkkI


HR_PAD_HIRE_EMPLOYEE Error

$
0
0

Hi I am using HR_PAD _HIRE_EMPLOYEE to create new employee and its giving following error:

 

1EHRASR00_INFTY031External number range; Enter a personnel number000000
2EPBAS_SERVICE030Personnel number 00000000 not permitted000000

 

I am attaching my code:

 

DATA:   lt_pa0001 TYPE STANDARD TABLE OF zhr_ocp_pa0001,

           ls_pa0001 TYPE zhr_ocp_pa0001,

           lt_pa0002 TYPE STANDARD TABLE OF zhr_ocp_pa0002,

           ls_pa0002 TYPE zhr_ocp_pa0002,

           lt_record1 TYPE STANDARD TABLE OF p0001,

           lt_record2 TYPE STANDARD TABLE OF p0002,

           ls_record1 TYPE p0001,

           ls_record2 TYPE p0002,

           ls_return TYPE hrpad_return_tab,

           ls_key TYPE hrpad_bapipakey_tab,

           lv_pernr TYPE pernr,

           lv_error TYPE flag.

 

   DATA ls_prelp TYPE prelp.

   DATA et_prelp TYPE prelp_tab.

 

   FIELD-SYMBOLS <pnnnn> TYPE any.

 

<selecting values into table lt_pa0001 and lt_pa0002>

 

   LOOP AT lt_pa0001 INTO ls_pa0001.

 

     LS_RECORD1-BEGDA = LS_PA0001-BEGDA.

     LS_RECORD1-ENDDA = LS_PA0001-ENDDA.

     LS_RECORD1-BTRTL = LS_PA0001-BTRTL.

     LS_RECORD1-ABKRS = LS_PA0001-ABKRS.

     LS_RECORD1-PLANS = LS_PA0001-PLANS.

     LS_RECORD1-BUKRS = LS_PA0001-BUKRS.

     LS_RECORD1-WERKS = LS_PA0001-WERKS.

     LS_RECORD1-PERSG = LS_PA0001-PERSG.

     LS_RECORD1-PERSK = LS_PA0001-PERSK.

     LS_RECORD1-GSBER = LS_PA0001-GSBER.

     LS_RECORD1-ORGEH = LS_PA0001-ORGEH.

     LS_RECORD1-OTYPE = LS_PA0001-OTYPE.

     LS_RECORD1-SBMOD = LS_PA0001-SBMOD.

     LS_RECORD1-KOKRS = LS_PA0001-KOKRS.

     LS_RECORD1-sname = LS_PA0001-SNAME.

     LS_RECORD1-ename = LS_PA0001-ENAME.

     LS_RECORD1-ZZHAPPTDTE = LS_PA0001-ZZHAPPTDTE.

      APPEND LS_RECORD1 TO lt_record1.

 

   ENDLOOP.

 

 

   LOOP AT lt_pa0002 INTO ls_pa0002.

 

     LS_RECORD2-BEGDA = LS_PA0002-BEGDA.

     LS_RECORD2-ENDDA = LS_PA0002-ENDDA.

     LS_RECORD2-INITS = LS_PA0002-INITS.

     LS_RECORD2-NACHN = LS_PA0002-NACHN.

     LS_RECORD2-VORNA = LS_PA0002-VORNA.

     LS_RECORD2-RUFNM = LS_PA0002-RUFNM.

     LS_RECORD2-ANRED = LS_PA0002-ANRED.

     LS_RECORD2-GESCH = LS_PA0002-GESCH.

     LS_RECORD2-GBDAT = LS_PA0002-GBDAT.

     LS_RECORD2-GBLND = LS_PA0002-GBLND.

     LS_RECORD2-GBORT = LS_PA0002-GBORT.

     LS_RECORD2-NATIO = LS_PA0002-NATIO.

     LS_RECORD2-SPRSL = LS_PA0002-SPRSL.

     LS_RECORD2-FAMST = LS_PA0002-FAMST.

     LS_RECORD2-ANZKD = LS_PA0002-ANZKD.

     APPEND lS_record2 TO lT_record2.

   ENDLOOP.

 

 

 

*Personnel data

   LOOP AT lt_record1 INTO ls_record1.

     ls_record1-infty = '0001'.

     ASSIGN ls_record1 TO <pnnnn>.

     CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp

       EXPORTING

         pnnnn = ls_record1

       IMPORTING

         prelp = ls_prelp.

     APPEND ls_prelp TO et_prelp.

     CLEAR ls_prelp.

   ENDLOOP.

 

   LOOP AT lt_record2 INTO ls_record2.

     ls_record2-infty = '0002'.

     ASSIGN ls_record2 TO <pnnnn>.

     CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp

       EXPORTING

         pnnnn = ls_record2

       IMPORTING

         prelp = ls_prelp.

     APPEND ls_prelp TO et_prelp.

     CLEAR ls_prelp.

   ENDLOOP.

 

*Create new employee for user

   CALL FUNCTION 'HR_PAD_HIRE_EMPLOYEE'

     EXPORTING

*     employeenumber  = ''

       hiringdate      = '20130501'

       actiontype      = 'Z3'

       reasonforaction = '01'

       pnnnn_tab       = et_prelp

       nocommit        = ''

     IMPORTING

       return_tab      = ls_return

       bapipakey_tab   = ls_key.

 

   IF ls_key IS NOT INITIAL.

*   READ TABLE GT_BAPIKEY INTO GS_BAPIKEY INDEX 1.

*   LV_PERNR = GS_BAPIKEY-EMPLOYEENO.

   ENDIF.

 

 

Please help as in why am I getting this error

 

Regards

Re: How to know user clicked on which button on print dialog box?

$
0
0

I am using microsoft web browser to display pdf from a location.

Then I have used ole function to print.

 

is there any way to know , which button user clicked.

Re: Determine the Dynamic Source and Target Directories through an FTP

Re: Expense Report in UWL showing outdated

$
0
0

Hi Krunal,

 

My trips and Expenses page is working fine and even travel request work item also i am able to view in UWL work item. but only expense settlement report only shows the error message when we click on the work item.

 

Regards

Rajesh

Re: How to know user clicked on which button on print dialog box?

$
0
0

I am using a Microsoft ole browser to print the PDF.

not a datawindow.

Re: Cumulative over rolling time period

$
0
0

Dear Indraajit

yes you are right...

I tried to think about another workaround to do it, but at present I could not find any

(except you calculate every poeriod seperately with a seperate KF and add them up at the end, but that is not a solution)

 

That means at the moment I see only LCode or Excel EPM key figure

 

  • In Excel EPM, it is easy, but you cannot use it in Analytics than. You can create a new row and put in your formula such as .
    The only thing you need to check is that the previous month is really a month and not the keyfigurename by e.g. (depending on in which cell your grid starts)
    =IF(ISNUMBER(J11),K5+J11,K5) with K = first column with months, Line 5 = the line with your original KF1, and line 11 = the line in which you post your result

  • LCode coding itself is not the issue either, but you need to align with your SAP contact beforehand

 

Sorry!

 

Irmi

Re: LSMW - PA40 UPLOAD WITH INTERNAL PERNR

$
0
0

Hi Pardhu,

 

Thanks for your reply!

 

1) I am currently trying to use PA40 for LSMW for New Hires and the info types i am uploading is (0000,0001 & 0002).

2) When i upload the action runs for 10 sample employees  with  INTERNAL PERNR, what assigned to first employee is getting updated till 10th employee when i am running the last step and the employee code at last getting assigned to last employee and stops.

 

3) I need to know how to assign employee codes for all 10 employees for running personnel actions using LSMW batch recording  with internal PERNR.

 

regards,

Surain Babu D


Re: Dataflow execution in Parallel

$
0
0

Cut the connection from script to DF_Emp first.

Then connect script to DF_Case and DF_Case to DF_Emp.

Re: LSMW - PA40 UPLOAD WITH INTERNAL PERNR

$
0
0

Dear,

 

Then i need to check your LSMW recording.Did you get the right details at step"Display Converted Data"?

 

you need to assign the internal number assignment number of PERNR in the file it self for all employees hiring.

 

Regards,

pardhu

Deploy to SAPUI ABAP Repository in Update Mode = error lastIndex is read-only

$
0
0

Deploying a new application works fine, updating that same application however results in an error of which I think it's a WebIDE bug.

 

2015-12-04_12-17-54.png

Re: Determine the Dynamic Source and Target Directories through an FTP

$
0
0

Hi Vijay,

               No need to put anything any dynamic attribute in any channel. In fact this will be a single ICO which will pick up only the source  file containing dynamic parameters as mentioned in your post.

The the java code will read and write the files, no need of separate communication channel any where.

The receiver channel will simply archive the  packet file (source file) in some target directory.

 

Regards

Anupam

Re: Nota 2232757 - NT 003 / 2015 Erros não solucionados

$
0
0

Olá pessoal,

 

Estou implementando esta nota, baixei a versão 7, porém na implementação está dando erro nos includes: LJ1BWCL2 e LJ1BWI01, um dos problemas é a falta de um campo na visão J_1btxic3v que fala da falta do campo SPECF_RATE, este campo foi criado na na tabela, conforme o manual de pré-implementação, porém o manual não faz nenhuma menção em incluir este campo também na View.

 

Outro problema é que este include Lj1BWCL2, fala de uma variável global  chamada M_CODE, que simplesmente não existe nos TOP Includes.

 

Nosso ERP está no 617, SP 08.

 

Alguém encontrou estes problemas?

 

Abraços.

Re: set the Cursor to a wait cursor

$
0
0

Hi again,

 

Yes, it's not recommended to work with multithreading with SDK inside B1.

 

But I have developped an Add-on with a complex query, I used the progressbar for the wait cursor without the multithreading and it works fine.

 

This is my code :

progressBar =  SBO_Application.StatusBar.CreateProgressBar("Prograss Bar", 10000, false);

oRec.DoQuery(" My Query'");

 

while (oRec.EoF == false)

            {

                oItems.GetByKey(oRec.Fields.Item(0).Value.ToString());

                oItems.UserFields.Fields.Item("U_MTC_PDR_Classe").Value = "D";

 

                    if (oItems.Update() == 0)

                    {

                        progressBar.Text = "Updated Item - " + oRec.Fields.Item(0).Value.ToString();

                    }

                    else

                    {

                        string msg = Program.oCompany.GetLastErrorDescription();

                        Application.SBO_Application.MessageBox("Pour l'article "+oRec.Fields.Item(0).Value.ToString() + " -  "+ msg);

                    }

                oRec.MoveNext();

            }

            System.Runtime.InteropServices.Marshal.ReleaseComObject(oRec);

            oRec = null;

      

 

            progressBar.Stop();

 

Kindly,

Mohamed.

Re: RPUAUD00 deleted entries between extended endda are not flagged as Deleted


Re: Transactions are creating but not saving in database...

$
0
0

Hello,

 

As a starting point, check your system log (SM21) and check for short dumps (ST22).

 

Also check SM13 for failed updates.

 

KR,

 

Amerjit

Re: How to change an invalid xml

$
0
0

Hi Henk,

             All the best. You will definately succeed.

 

Regards

Anupam

Re: New prices won't update on Sales Orders with backorders

$
0
0

Hello Alex,

 

Any change made in the master data (Account ,Product ,Price) after the Transaction data (Sales Order, Service Order) already created ,will not update those master data changes in transaction data.

 

This is expected behavior to prevent inconsistency in existing document .

 

Regards,

Ankush.

Re: Asynchronous/Synchronous bridge with out BPM with SOAP, RFC and JMS

$
0
0

If you mean two different asynchronous senarios, I am afraid it's not possible. The requirement is to do it as one scenario.

 

I am exploring options

Re: LSMW - PA40 UPLOAD WITH INTERNAL PERNR

$
0
0

Hello,

 

To answer your questions -

 

1) The employee i upload with LSMW are new employees and  and is it possible to use PA30? - YES

2) Is it possible to upload two or three  infotypes at the same time without employee code in PA30 transaction. _ YES

3) I am uploading the LSMW PA40 with internal PERNR, whether for new master updation for employee who r not there in the system whether PA30 can be used? - YES

 

In general if you use PA30, give 1st IT to be recorded as IT0000, then the subsequent ITs will be automatically called.

 

You can try this by executing an Hiring action using PA30, as you would generally use in PA40.

Try this with LSMW giving pa30 and test , you will get to know yourself....

 

Hope this helps

 

Vishwas

Viewing all 3164 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>