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

Re: Sales order creation

0
0

Hi Mastan Shail,

                      If you have excel file with you the following code will help you fix your problem.

i have hard coded the values here.first check with this values.then go to vbak and vbap table.see the values.

use function module to upload data from excel.

use  ALSM_EXCEL_TO_INTERNAL_TABLE or

use TEXT_CONVERT_XLS_TO_SAP.

here specify the path of your file.

give the internal table which should have a same structure like excel fille.

the loop internal tables,pass the values to corresponding fields.

then use bapi function module to create sales order

 

TYPE-POOLS: truxs.

*PARAMETERS : p_file TYPE rlgrap-filename. or

 

 

PARAMETER: p_infile LIKE rlgrap-filename." OBLIGATORY DEFAULT 'C:\Users\VENKAT\Desktop\samplefile.xlsx'.

 

 

TYPES : BEGIN OF ty_va01,

         auart(4) TYPE c,

         vkorg(4) TYPE c,

         vtweg(2) TYPE c,

         spart(2) TYPE c,

         kunnr(4) TYPE c,

         mabnr(7) TYPE c,

         kwmeng(5) TYPE c,

         werks(5) TYPE c,

         END OF ty_va01.

"this is a structure of excel file.

DATA : gt_va01 TYPE STANDARD TABLE OF ty_va01,

        gs_va01 TYPE ty_va01.

DATA : gs_head TYPE bapisdhd1,

        gs_headx TYPE bapisdhd1x,

        gt_return TYPE TABLE OF bapiret2 WITH HEADER LINE,

        gt_item TYPE TABLE OF bapisditm WITH HEADER LINE,

        gt_itemx TYPE TABLE OF bapisditmx WITH HEADER LINE,

        gt_partner TYPE TABLE OF bapiparnr WITH HEADER LINE.

"use function module to upload data from excel.

"use  ALSM_EXCEL_TO_INTERNAL_TABLE

"use TEXT_CONVERT_XLS_TO_SAP

"here i have hard coded values to upload sales order

"replace the hard coded values

 

 

CALL FUNCTION 'F4_FILENAME'

  EXPORTING

  program_name = syst-cprog

  dynpro_number = syst-dynnr

  field_name = 'P_INFILE'

  IMPORTING

  file_name = p_infile.

 

 

  CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'

  EXPORTING

  i_tab_raw_data = it_raw

  i_filename = p_infile

  TABLES

  i_tab_converted_data = gt_va01

  EXCEPTIONS

  conversion_failed = 1

  OTHERS = 2.

  IF sy-subrc <> 0.

* Implement suitable error handling here

  ENDIF.

 

"header

"loop at gt_va01 INTO gs_va01.

"at new auart.

gs_head-doc_type = 'OR'."gs_va01-auart

gs_head-sales_org = '1000'."gs_va01-vkorg

gs_head-distr_chan = '10'."gs_va01-vtweg

gs_head-division = '00'."gs_va01-spart

 

gs_headx-doc_type = 'X'.

gs_headx-sales_org = 'X'.

gs_headx-distr_chan = 'X'.

gs_headx-division = 'X'.

"endat.

"item values

gt_item-itm_number = '00010'."auto increment values here

gt_item-material = '100-100'."gs_va01-mabnr

gt_item-target_qty = 10."gs_va01-kwmeng

gt_item-plant = '1000'."gs_va01-werks

 

gt_itemx-itm_number = '00010'.

gt_itemx-material = 'X'.

gt_itemx-target_qty = 'X'.

gt_itemx-plant = 'X'.

"partner profile

gt_partner-partn_role = 'SP'.

gt_partner-partn_numb = '0000002130'.

APPEND  gt_partner.

APPEND gt_item.

APPEND gt_itemx.

*at END OF auart.

 

CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'

   EXPORTING

     order_header_in  = gs_head

     order_header_inx = gs_headx

     testrun          = ' '

     convert          = 'X'

   TABLE

     return           = gt_return

     order_items_in   = gt_item

     order_items_inx  = gt_itemx

     order_partners   = gt_partner.

 

*endat.

*endloop.

LOOP AT gt_return.

   WRITE : / gt_return-message,

             gt_return-message_v1,

             gt_return-message_v2.

ENDLOOP.



thank you


CVD gl hitting in grn and j1iex

0
0

Dear Experts,

 

I am facing different issue during imports, in a single SA/PO CVD  crediting and adding to material cost.

here is the process

 

1.SA/PO

2.Commercial invoice:

 

          Customs clearing GL dr

          CVD clearing        GL dr

            Commercial office   Cr

     (entry is correct)

 

3.GRN

 

      Stock GL  dr

     Gr/Ir  clearing cr    

     CVD clearing  cr

     Customs Clearing cr

     (means CVD adding to material cost which is not correct)

 

4.Excise invoice post:

 

     BED,AED dr

     CVD clearing cr

     (entry correct)

 

we have checked every thing but not getting it ,can some one help on it how system posting at both times.

Re: Issue with the Inventory cube query

0
0

Hi,

 

Did you try "generate report" in RSRT?

 

Also, check if there is any problem in backend tables? try to see if the technical UID of the said component is missing or has duplicate entry etc?

 

Hope this helps.

 

-Swati.

Re: Tables used in SCU3 transcation

0
0

Hi Mohammad,

 

My requirement is to get table log from one system to another sap system. So i thought of using RFC Function module - RFC_READ_TABLE and pass the table name and date as input parameter.

 

So if i could get the table name which is used to fetch table log then it would be easy to use in the FM.

 

Or is there any idea to achieve the requirement. Please guide.

Re: Java Null Pointer Exception in Mail Adapter

0
0

Hi,

   Has any one found any solution to this. ?  i am getting this error randomly. Things work fine and suddenly this error is thrown.

Re: PA-PA-XX CX_HRPA_NO_IMPLEMENTATION

0
0

Can you suggest me any other solution for this problem, as i am unable to proceed further and to trace out this error.

 

Regards,

Shahairyar

Re: syntax error for dynamic column for update query

0
0

Hello Umesh,

 

in front of the where clause a blank is missing to separate the value set in the column from the word "where" (-> ... || ' where WID = ' || :R."W1";).

 

In case your column types are character based you should also enclose the values in single quotes.

 

Regards,

Florian

KSV4 Audit trails

0
0

Hi

In our production system some one has deleted distribustion cycle using KSV4 .I have 2 questions here

1     Is it Possible to find out identity of person who has deleted cycle using KSV4?

2     Is is possible to recover back same cycle again ?if so using which tcode

 

-Kaushal


Re: Issue with the Inventory cube query

0
0

With Swati,
Would like to add,  you can run RSRV check on the query itself and see..

 

-AB

Re: Switzerland UBS DMEE - Configuration for Field 72 - Instruction to Bank for Roubles & Remnimbi in CH_DTA Payment Medium Workbench

0
0

Hello Ajay,

 

Thanks for the input. Will check & update you.

 

Thanks & Regards

Shreenath

Re: Cannot able to combine the individual production orders to a single Combined order

0
0

Hi Vijay Mankar,

 

Thanks for your reply.

 

There is no co product exists for any of the production orders, but not able to combine.

 

Regards,

Hemanth.

Re: Error when activating composite provider

0
0

Pramod  good to see you sharing the solution

Re: Removing Images from Gallery Personas 3.0

0
0

After deleting the theme, did you also remove it physically from the database by either using the Remove from DB function or by running the theme cleanup?

 

Deleting the theme will only mark the theme as deleted but as long as the cleanup didn't run, the reference to the image will still be there thus you cannot delete the image.

 

If you removed the theme from the DB, you should be able to delete the image as well.

SAP Treasury (TRM) -FSCM certification

0
0

SAP Mentors,

 

I am working  on SAP Treasury  module  since last year on implementation & support.

, i want to enrolled for CERTIFICATION , is SAP conduct any certification  for same ?

 

 

Regards

 

Sourabh Muthreja

SAP Fiori Launchpad

0
0

Dear Fiori Experts,

 

I have doubt on SAP Fiori Launchpad Tiles.

After configuring Launchpad--we can create Catalogs, Groups and add Tiles.

 

Let us consider I have added a Static/Dynamic Tile to FLP. When I click on this Tile, it should take me to another Static/Dynamic.

 

Is this possible?

 

Regards,

Raghu


Hello,

0
0

I am trying to make billing document with reference to delivery, but no billing documents are getting generated. System is showing below error.

 

Error Log

 

 

             2000110611 000000 &

 

 

            Technical data

 

 

                Tech. data details

 

 

                 Client                                 300

                 Group Number

                 Sales Document Number                  2000110611

                 Item Number of the SD Document         000000

                 Schedule Line Number                   0400

                 Counter in Control Tables              00

                 Message Identification                 VF

                 System Message Number                  400

                 Output Type                            E

                 Message Variable 01                    excise reference document not crea

                 Message Variable 02

                 Message Variable 03

                 Message Variable 04

                 Group Type                             F

 

Please look into the matter.

Re: Receiver Segments Grouping Required.

0
0

Guess Praveen already gave the solution, If you face any issues let us know.

Re: Adding InfoObject in ADSO

Mandatory Standard Item Text field in ME51N

0
0

Hello Experts,

 

               I want to add some new validation , like Standard  ITEM TEXT field mandatory based on condition in ME51N .

               Is this possible using exit or badi ?

               kindly , suggest me.

 

 

 

 

 

Regards,

Pratiksha

SAP PI/PO With HANA

0
0

Dear Scn users,

 

I am currently having 4.8 years of experience in SAP PI/PO.

 

Is it good to learn Hana and move to HANA.

 

Is SAP PI/PO + HANA a hot skill?

 

If not what should be good skill to learn and move for SAP PI/PO Consultant.

Viewing all 8902 articles
Browse latest View live




Latest Images